Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Setting.cs
1using System;
3
5{
9 [TypeName(TypeNameSerialization.LocalName)]
10 [CollectionName("Settings")]
11 [ArchivingTime] // No Limit
12 [Index("Key")]
13 public abstract class Setting
14 {
15 private string objectId = null;
16 private string key = string.Empty;
17
21 public Setting()
22 {
23 }
24
29 public Setting(string Key)
30 {
31 this.key = Key;
32 }
33
37 [ObjectId]
38 public string ObjectId
39 {
40 get => this.objectId;
41 set => this.objectId = value;
42 }
43
47 public string Key
48 {
49 get => this.key;
50 set => this.key = value;
51 }
52
57 public abstract object GetValueObject();
58 }
59}
Base abstract class for settings.
Definition: Setting.cs:14
Setting()
Base abstract class for settings.
Definition: Setting.cs:21
Setting(string Key)
Base abstract class for settings.
Definition: Setting.cs:29
abstract object GetValueObject()
Gets the value of the setting, as an object.
TypeNameSerialization
How the type name should be serialized.