ln.skyspot/session/HotspotSession.cs

32 lines
755 B
C#

using System;
using ln.types.net;
using skyspot.users;
using ln.types.odb.attributes;
namespace skyspot.session
{
public class HotspotSession
{
[DocumentIDAttribute]
public Guid ID { get; set; }
public IPv4 IP { get; set; }
public MAC MacAddress { get; set; }
public HotspotUser HotspotUser { get; set; }
public DateTimeOffset Created { get; }
public DateTimeOffset Destroyed { get; private set; }
public long RXTrafficVolume { get; set; }
public long TXTrafficVolume { get; set; }
public HotspotSession()
{
ID = Guid.NewGuid();
Created = DateTimeOffset.Now;
Destroyed = DateTimeOffset.MinValue;
}
}
}