using System; using System.Collections.Generic; using System.Security; namespace Flexitime.Objects { public class User { public User() { AssociatedIdentifiers = new List(); Groups = new List(); Permissions = new List(); 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 AssociatedIdentifiers { get; set; } public List Groups { get; set; } public UserState State { get; set; } /// /// Id of the Users Line Manager /// public int LineManagerId { get; set; } /// /// Ids of the users direct reports /// public int[] DirectReportIds { get; set; } public string Password { get; set; } public List Permissions { get; set; } } }