FlexitimeTracker/DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs
Chris.Watts90@outlook.com 69f3e502e0 Add LastEventDateTime property to User object
Add Code to populate the LastEventDateTime property in SQLiteRepository - getting the last TimeLogEvent datetime. will return min value if no logs available.
#53
2017-03-03 13:00:01 +00:00

28 lines
779 B
C#

using System;
using System.Collections.Generic;
namespace Interfaces
{
public class User
{
public User()
{
AssociatedIdentifiers = new List<Identifier>();
FirstName = "";
LastName = "";
}
public int UserId { get; set; }
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 bool State { get; set; }
}
}