Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
UserSetting.cs
2
4{
8 [TypeName(TypeNameSerialization.LocalName)]
9 [CollectionName("UserSettings")]
10 [ArchivingTime] // No Limit
11 [Index("User", "Key")]
12 [Index("Key", "User")]
13 public abstract class UserSetting
14 {
15 private string objectId = null;
16 private string user = string.Empty;
17 private string key = string.Empty;
18
22 public UserSetting()
23 {
24 }
25
31 public UserSetting(string User, string Key)
32 {
33 this.user = User;
34 this.key = Key;
35 }
36
40 [ObjectId]
41 public string ObjectId
42 {
43 get => this.objectId;
44 set => this.objectId = value;
45 }
46
50 public string User
51 {
52 get => this.user;
53 set => this.user = value;
54 }
55
59 public string Key
60 {
61 get => this.key;
62 set => this.key = value;
63 }
64
69 public abstract object GetValueObject();
70 }
71}
Base abstract class for user settings.
Definition: UserSetting.cs:14
UserSetting(string User, string Key)
Base abstract class for user settings.
Definition: UserSetting.cs:31
abstract object GetValueObject()
Gets the value of the setting, as an object.
UserSetting()
Base abstract class for user settings.
Definition: UserSetting.cs:22
TypeNameSerialization
How the type name should be serialized.