Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AccountLogin.cs
1using System;
4
6{
7 [CollectionName("BrokerAccountLogins")]
8 [TypeName(TypeNameSerialization.None)]
9 [Index("UserName")]
10 public class AccountLogin
11 {
12 private string objectId = null;
14 private string remoteEndpoint = string.Empty;
15 private DateTime lastLogin = DateTime.MinValue;
16
17 public AccountLogin()
18 {
19 }
20
21 [ObjectId]
22 public string ObjectId
23 {
24 get => this.objectId;
25 set => this.objectId = value;
26 }
27
28 public CaseInsensitiveString UserName
29 {
30 get => this.userName;
31 set => this.userName = value;
32 }
33
34 [DefaultValueStringEmpty]
35 public string RemoteEndpoint
36 {
37 get => this.remoteEndpoint;
38 set => this.remoteEndpoint = value;
39 }
40
41 [DefaultValueDateTimeMinValue]
42 public DateTime LastLogin
43 {
44 get => this.lastLogin;
45 set => this.lastLogin = value;
46 }
47 }
48}
Represents a case-insensitive string.
static readonly CaseInsensitiveString Empty
Empty case-insensitive string
TypeNameSerialization
How the type name should be serialized.