aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/TCC/Tango.TCC.Service/Messages/LoginUserResponse.cs
blob: 0e1375618267ad09954cea7f7daf286ec7c2e9eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Tango.TCC.BL.Web;
using Tango.TCC.Service.Models;

namespace Tango.TCC.Service.Messages
{
    public class LoginUserResponse 
    {
        public User UserData { get; set; }

        public DateTime LoginDate { get;set;}
        public DateTime ExpirationDate { get; set; }

        public bool IsExpired { get; set; }

        public LoginUserResponse(string userName, string firstName, string lastName, long userID, DateTime expirationDate)
        {
            UserData = new User(userName, firstName, lastName, userID);
            ExpirationDate = expirationDate;
            LoginDate = DateTime.Now;
        }
        public LoginUserResponse()
        {
            LoginDate = DateTime.Now;
        }
    }
}