ln.skyspot/users/HotspotUser.cs

47 lines
1.1 KiB
C#

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;
}
}
}
public IEnumerable<HotspotSession> ActiveSessions { get; }
public HotspotUser()
{
}
}
}