Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 6452 was 5257, checked in by mjesner, 14 years ago

#1196

File size: 2.0 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21using System;
22using System.Collections.Generic;
23using System.Linq;
24using System.Text;
25using System.Runtime.Serialization;
26
27namespace HeuristicLab.Services.Authentication.DataTransfer {
28
29  [DataContract]
30  public class User : AuthenticationItem {
31
32    public User() {
33      Name = string.Empty;
34      Email = string.Empty;
35      ApplicationId = Guid.Empty;
36      CreateDate = DateTime.Now;
37      LastActivityDate = DateTime.Now;
38      LastLoginDate = DateTime.Now;
39      LastLockoutDate = DateTime.Now;
40      LastPasswordChangeDate = DateTime.Now;
41    }
42
43    [DataMember]
44    public Guid ApplicationId { get; set; }
45
46    [DataMember]
47    public string Email { get; set; }
48
49    [DataMember]
50    public bool IsApproved { get; set; }
51
52    [DataMember]
53    public bool IsLookedOut { get; set; }
54
55    [DataMember]
56    public DateTime CreateDate { get; set; }
57
58    [DataMember]
59    public DateTime LastLoginDate { get; set; }
60
61    [DataMember]
62    public DateTime LastPasswordChangeDate { get; set; }
63
64    [DataMember]
65    public DateTime LastLockoutDate { get; set; }
66
67    [DataMember]
68    public DateTime LastActivityDate { get; set; }
69  }
70}
Note: See TracBrowser for help on using the repository browser.