master
Harald Wolff 2019-05-07 10:21:25 +02:00
parent ca10e62a53
commit 8e31b7125f
4 changed files with 81 additions and 5 deletions

View File

@ -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()
{
}
}
}

View File

@ -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()
{
}
}
}

View File

@ -6,13 +6,17 @@ namespace skyspot.session
{
public class HotspotSession
{
[DocumentIDAttribute]
[DocumentID]
public Guid ID { get; set; }
public IPv4 IP { get; set; }
public MAC MacAddress { get; set; }
[ByReference]
public HotspotNetwork HotspotNetwork;
public HotspotUser HotspotUser { get; set; }
[ByReference]
public HotspotUser HotspotUser;
public IPv4 IP;
public MAC MacAddress;
public DateTimeOffset Created { get; }
public DateTimeOffset Destroyed { get; private set; }
@ -20,12 +24,14 @@ namespace skyspot.session
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()
{}
}
}

View File

@ -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()
{
}
}
}