FlexitimeTracker/FlexitimeUI/Flexitime.Objects/User.cs
Chris Watts 005da7ce2b create initial react project for flexitime v2 application.
includes .net webapi backend and ui test stubs
2021-03-22 14:54:42 +00:00

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; }
}
}