Free cookie consent management tool by TermsFeed Policy Generator

source: branches/UserManagement/HeuristicLab.Services.Authentication.DataTransfer/User.cs @ 4800

Last change on this file since 4800 was 4789, checked in by mjesner, 14 years ago

#1196

File size: 3.9 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Runtime.Serialization;
6
7namespace HeuristicLab.Services.Authentication.DataTransfer
8{
9  [DataContract]
10  public class User : NamedAuthItem {
11
12      public User()
13      {
14          Password = "";
15          PasswordSalt = "";
16          Name = "";
17          CreateDate = DateTime.Now;
18          LastActivityDate = DateTime.Now;
19          LastLoginDate = DateTime.Now;
20          LastLockoutDate = DateTime.Now;
21          LastPasswordChangeDate = DateTime.Now;
22      }
23
24    // Member of Membership
25    [DataMember]
26    public Guid ApplicationId { get; set; } // Membership
27    [DataMember]
28    public string Password { get; set; } // Membership
29    //[DataMember]
30    //public string PasswordFormat { get; set; } // Membership
31    [DataMember]
32    public string PasswordSalt { get; set; } // Membership
33    //[DataMember]
34    //public string MobilePIN { get; set; } // Membership
35    [DataMember]
36    public string Email { get; set; } // Membership
37    //[DataMember]
38    //public string LoweredEmail { get; set; } // Membership
39    //[DataMember]
40    //public string PasswordQuestion { get; set; } // Membership
41    //[DataMember]
42    //public string PasswordAnswer { get; set; } // Membership
43    [DataMember]
44    public bool IsApproved { get; set; } // Membership
45    [DataMember]
46    public bool IsLookedOut { get; set; } // Membership
47    [DataMember]
48    public DateTime CreateDate { get; set; } // Membership
49    [DataMember]
50    public DateTime LastLoginDate { get; set; } // Membership
51    [DataMember]
52    public DateTime LastPasswordChangeDate { get; set; } // Memership
53    [DataMember]
54    public DateTime LastLockoutDate { get; set; } // Membership
55    //[DataMember]
56    //public int FailedPasswordAttemptCount { get; set; } // Membership
57    //[DataMember]
58    //public DateTime FailedPasswordAttemptWindowStart { get; set; } // Membership
59    //[DataMember]
60    //public int FailedPasswordAnswerAttemptCount { get; set; } // Membership
61    //[DataMember]
62    //public DateTime FailedPasswordAnswerAttemptWindowStart { get; set; } // Membership
63    [DataMember]
64    public string Comment { get; set; } // Membership
65    // Members of User
66    //[DataMember]
67    //public string LoweredUserName { get; set; } // User
68    //[DataMember]
69    //public string MobileAlias { get; set; } // User
70    //[DataMember]
71    //public bool IsAnonymous { get; set; } // User
72    [DataMember]
73    public DateTime LastActivityDate { get; set; } // User
74
75  }
76
77
78
79    //[DataContract]
80    //public class User
81    //{
82
83    //    public User()
84    //    {
85    //        Membership = new Membership();
86    //    }
87
88    //    [DataMember]
89    //    public Membership Membership { get; set; }
90
91    //    [DataMember]
92    //    public string Email
93    //    {
94    //        get { return Membership.Email; }
95    //        set { Membership.Email = value; }
96    //    }
97    //    [DataMember]
98    //    public string Password
99    //    {
100    //        get { return Membership.Password; }
101    //        set { Membership.Password = value; }
102    //    }
103    //    [DataMember]
104    //    public string PasswordQuestion
105    //    {
106    //        get { return Membership.PasswordQuestion; }
107    //        set { this.Membership.PasswordQuestion = value; }
108    //    }
109    //    [DataMember]
110    //    public Guid ApplicationId { get; set; }
111    //    [DataMember]
112    //    public Guid UserId { get; set; }
113    //    [DataMember]
114    //    public string UserName { get; set; }
115    //    [DataMember]
116    //    public string LoweredUserName { get; set; }
117    //    [DataMember]
118    //    public string MobileAlias { get; set; }
119    //    [DataMember]
120    //    public bool IsAnonymous { get; set; }
121    //    [DataMember]
122    //    public DateTime LastActivityDate { get; set; }
123
124    //}
125}
Note: See TracBrowser for help on using the repository browser.