Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 5219 was 4979, checked in by jwolfing, 14 years ago

#1196 Changed BaseClasses in Data Transfer Objects, added Methods to User and Role ServiceClasses

File size: 4.0 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 : NamedAuthenticationItem {
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   
34    /// Change PW ?! welcher Hash in DB
35
36
37    //[DataMember]
38    //public string MobilePIN { get; set; } // Membership
39    [DataMember]
40    public string Email { get; set; } // Membership
41    //[DataMember]
42    //public string LoweredEmail { get; set; } // Membership
43    //[DataMember]
44    //public string PasswordQuestion { get; set; } // Membership
45    //[DataMember]
46    //public string PasswordAnswer { get; set; } // Membership
47    [DataMember]
48    public bool IsApproved { get; set; } // Membership
49    [DataMember]
50    public bool IsLookedOut { get; set; } // Membership
51    [DataMember]
52    public DateTime CreateDate { get; set; } // Membership
53    [DataMember]
54    public DateTime LastLoginDate { get; set; } // Membership
55    [DataMember]
56    public DateTime LastPasswordChangeDate { get; set; } // Memership
57    [DataMember]
58    public DateTime LastLockoutDate { get; set; } // Membership
59    //[DataMember]
60    //public int FailedPasswordAttemptCount { get; set; } // Membership
61    //[DataMember]
62    //public DateTime FailedPasswordAttemptWindowStart { get; set; } // Membership
63    //[DataMember]
64    //public int FailedPasswordAnswerAttemptCount { get; set; } // Membership
65    //[DataMember]
66    //public DateTime FailedPasswordAnswerAttemptWindowStart { get; set; } // Membership
67    [DataMember]
68    public string Comment { get; set; } // Membership
69    // Members of User
70    //[DataMember]
71    //public string LoweredUserName { get; set; } // User
72    //[DataMember]
73    //public string MobileAlias { get; set; } // User
74    //[DataMember]
75    //public bool IsAnonymous { get; set; } // User
76    [DataMember]
77    public DateTime LastActivityDate { get; set; } // User
78
79  }
80
81
82
83    //[DataContract]
84    //public class User
85    //{
86
87    //    public User()
88    //    {
89    //        Membership = new Membership();
90    //    }
91
92    //    [DataMember]
93    //    public Membership Membership { get; set; }
94
95    //    [DataMember]
96    //    public string Email
97    //    {
98    //        get { return Membership.Email; }
99    //        set { Membership.Email = value; }
100    //    }
101    //    [DataMember]
102    //    public string Password
103    //    {
104    //        get { return Membership.Password; }
105    //        set { Membership.Password = value; }
106    //    }
107    //    [DataMember]
108    //    public string PasswordQuestion
109    //    {
110    //        get { return Membership.PasswordQuestion; }
111    //        set { this.Membership.PasswordQuestion = value; }
112    //    }
113    //    [DataMember]
114    //    public Guid ApplicationId { get; set; }
115    //    [DataMember]
116    //    public Guid UserId { get; set; }
117    //    [DataMember]
118    //    public string UserName { get; set; }
119    //    [DataMember]
120    //    public string LoweredUserName { get; set; }
121    //    [DataMember]
122    //    public string MobileAlias { get; set; }
123    //    [DataMember]
124    //    public bool IsAnonymous { get; set; }
125    //    [DataMember]
126    //    public DateTime LastActivityDate { get; set; }
127
128    //}
129}
Note: See TracBrowser for help on using the repository browser.