ln.skyspot/hotspot/HotspotSession.cs

38 lines
903 B
C#

using System;
using ln.types.net;
using skyspot.users;
using ln.types.odb.attributes;
namespace skyspot.hotspot
{
public class HotspotSession
{
[DocumentID]
public Guid ID { get; set; }
[ByReference]
public HotspotNetwork HotspotNetwork;
[ByReference]
public HotspotUser HotspotUser;
public IPv4 IP;
public MAC MacAddress;
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;
}
public HotspotSession(HotspotNetwork hotspotNetwork,MAC clientMAC)
:this()
{}
}
}