2019-04-23 09:24:56 +02:00
|
|
|
|
using System;
|
|
|
|
|
using ln.types.net;
|
|
|
|
|
using skyspot.users;
|
|
|
|
|
using ln.types.odb.attributes;
|
2019-05-07 10:21:50 +02:00
|
|
|
|
namespace skyspot.hotspot
|
2019-04-23 09:24:56 +02:00
|
|
|
|
{
|
|
|
|
|
public class HotspotSession
|
|
|
|
|
{
|
2019-05-07 10:21:25 +02:00
|
|
|
|
[DocumentID]
|
2019-04-23 09:24:56 +02:00
|
|
|
|
public Guid ID { get; set; }
|
|
|
|
|
|
2019-05-07 10:21:25 +02:00
|
|
|
|
[ByReference]
|
|
|
|
|
public HotspotNetwork HotspotNetwork;
|
2019-04-23 09:24:56 +02:00
|
|
|
|
|
2019-05-07 10:21:25 +02:00
|
|
|
|
[ByReference]
|
|
|
|
|
public HotspotUser HotspotUser;
|
|
|
|
|
|
|
|
|
|
public IPv4 IP;
|
|
|
|
|
public MAC MacAddress;
|
2019-04-23 09:24:56 +02:00
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
2019-05-07 10:21:25 +02:00
|
|
|
|
public HotspotSession(HotspotNetwork hotspotNetwork,MAC clientMAC)
|
|
|
|
|
:this()
|
|
|
|
|
{}
|
2019-04-23 09:24:56 +02:00
|
|
|
|
}
|
|
|
|
|
}
|