WIP
parent
ca10e62a53
commit
8e31b7125f
|
@ -0,0 +1,19 @@
|
||||||
|
// /**
|
||||||
|
// * File: HotspotManager.cs
|
||||||
|
// * Author: haraldwolff
|
||||||
|
// *
|
||||||
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
||||||
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
||||||
|
// *
|
||||||
|
// *
|
||||||
|
// **/
|
||||||
|
using System;
|
||||||
|
namespace skyspot.hotspot
|
||||||
|
{
|
||||||
|
public class HotspotManager
|
||||||
|
{
|
||||||
|
public HotspotManager()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
// /**
|
||||||
|
// * File: HotspotNetwork.cs
|
||||||
|
// * Author: haraldwolff
|
||||||
|
// *
|
||||||
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
||||||
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
||||||
|
// *
|
||||||
|
// *
|
||||||
|
// **/
|
||||||
|
using System;
|
||||||
|
using ln.types.odb.attributes;
|
||||||
|
using ln.types.net;
|
||||||
|
namespace skyspot.session
|
||||||
|
{
|
||||||
|
public class HotspotNetwork
|
||||||
|
{
|
||||||
|
[DocumentID]
|
||||||
|
public readonly Guid ID = Guid.NewGuid();
|
||||||
|
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Description { get; set; }
|
||||||
|
|
||||||
|
public string SID { get; set; }
|
||||||
|
|
||||||
|
public Network4 ClientsNetwork { get; set; }
|
||||||
|
public byte[] RadiusSecret { get; set; }
|
||||||
|
|
||||||
|
public HotspotNetwork()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -6,13 +6,17 @@ namespace skyspot.session
|
||||||
{
|
{
|
||||||
public class HotspotSession
|
public class HotspotSession
|
||||||
{
|
{
|
||||||
[DocumentIDAttribute]
|
[DocumentID]
|
||||||
public Guid ID { get; set; }
|
public Guid ID { get; set; }
|
||||||
|
|
||||||
public IPv4 IP { get; set; }
|
[ByReference]
|
||||||
public MAC MacAddress { get; set; }
|
public HotspotNetwork HotspotNetwork;
|
||||||
|
|
||||||
public HotspotUser HotspotUser { get; set; }
|
[ByReference]
|
||||||
|
public HotspotUser HotspotUser;
|
||||||
|
|
||||||
|
public IPv4 IP;
|
||||||
|
public MAC MacAddress;
|
||||||
|
|
||||||
public DateTimeOffset Created { get; }
|
public DateTimeOffset Created { get; }
|
||||||
public DateTimeOffset Destroyed { get; private set; }
|
public DateTimeOffset Destroyed { get; private set; }
|
||||||
|
@ -20,12 +24,14 @@ namespace skyspot.session
|
||||||
public long RXTrafficVolume { get; set; }
|
public long RXTrafficVolume { get; set; }
|
||||||
public long TXTrafficVolume { get; set; }
|
public long TXTrafficVolume { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public HotspotSession()
|
public HotspotSession()
|
||||||
{
|
{
|
||||||
ID = Guid.NewGuid();
|
ID = Guid.NewGuid();
|
||||||
Created = DateTimeOffset.Now;
|
Created = DateTimeOffset.Now;
|
||||||
Destroyed = DateTimeOffset.MinValue;
|
Destroyed = DateTimeOffset.MinValue;
|
||||||
}
|
}
|
||||||
|
public HotspotSession(HotspotNetwork hotspotNetwork,MAC clientMAC)
|
||||||
|
:this()
|
||||||
|
{}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
// /**
|
||||||
|
// * File: SessionManager.cs
|
||||||
|
// * Author: haraldwolff
|
||||||
|
// *
|
||||||
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
||||||
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
||||||
|
// *
|
||||||
|
// *
|
||||||
|
// **/
|
||||||
|
using System;
|
||||||
|
namespace skyspot.session
|
||||||
|
{
|
||||||
|
public class SessionManager
|
||||||
|
{
|
||||||
|
public SessionManager()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue