43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Security;
|
|
|
|
namespace Flexitime.Objects
|
|
{
|
|
public class User
|
|
{
|
|
public User()
|
|
{
|
|
AssociatedIdentifiers = new List<Identifier>();
|
|
Groups = new List<Group>();
|
|
Permissions = new List<Permission>();
|
|
FirstName = string.Empty;
|
|
LastName = string.Empty;
|
|
}
|
|
|
|
public string LoginId;
|
|
public int UserId { get; set; } //TODO make this guid
|
|
public string FirstName { get; set; }
|
|
public string LastName { get; set; }
|
|
public float HoursPerWeek { get; set; }
|
|
public bool IsContractor { get; set; }
|
|
public int AssociatedIdentifierCount
|
|
{
|
|
get { return AssociatedIdentifiers.Count; }
|
|
}
|
|
public DateTime LastEventDateTime { get; set; }
|
|
public List<Identifier> AssociatedIdentifiers { get; set; }
|
|
public List<Group> Groups { get; set; }
|
|
public UserState State { get; set; }
|
|
/// <summary>
|
|
/// Id of the Users Line Manager
|
|
/// </summary>
|
|
public int LineManagerId { get; set; }
|
|
/// <summary>
|
|
/// Ids of the users direct reports
|
|
/// </summary>
|
|
public int[] DirectReportIds { get; set; }
|
|
public string Password { get; set; }
|
|
public List<Permission> Permissions { get; set; }
|
|
}
|
|
} |