ln.skyspot/users/HotspotUser.cs

47 lines
1.1 KiB
C#
Raw Normal View History

2019-04-23 09:24:56 +02:00
using System;
using skyspot.session;
using System.Collections.Generic;
using ln.types.odb.attributes;
namespace skyspot.users
{
public class HotspotUser
{
[DocumentIDAttribute]
public Guid ID { get; private set; }
public String FirstName { get; set; }
public string LastName { get; set; }
public string PhoneNumber { get; set; }
public DateTime BirthDay { get; set; }
public RegistrationType RegistrationType { get; set; }
public HotspotVolume[] HotspotVolumes { get; set; }
int currentHotspotVolume = 0;
public HotspotVolume CurrentHotspotVolume
{
get => HotspotVolumes[currentHotspotVolume];
set
{
for (int n=0;n<HotspotVolumes.Length;n++)
if (HotspotVolumes[n] == value)
{
currentHotspotVolume = n;
return;
}
}
}
2019-05-09 09:53:48 +02:00
//public IEnumerable<HotspotSession> ActiveSessions { get; }
2019-04-23 09:24:56 +02:00
public HotspotUser()
{
}
}
}