Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IP4Localization.cs
2
4{
5 [CollectionName("IP4Localization")]
6 [NoBackup("IP Localization rules vary over time and can be incorrect at time of restoration.")]
7 [TypeName(TypeNameSerialization.None)]
8 [Index("RangeStart")]
9 public class IP4Localization
10 {
11 private string objectId = null;
12 private string countryCode = string.Empty;
13 private string country = string.Empty;
14 private string region = string.Empty;
15 private string city = string.Empty;
16 private uint rangeStart = 0;
17 private uint rangeEnd = 0;
18
19 public IP4Localization()
20 {
21 }
22
23 [ObjectId]
24 public string ObjectId
25 {
26 get => this.objectId;
27 set => this.objectId = value;
28 }
29
30 [DefaultValueStringEmpty]
31 public string CountryCode
32 {
33 get => this.countryCode;
34 set => this.countryCode = value;
35 }
36
37 [DefaultValueStringEmpty]
38 public string Country
39 {
40 get => this.country;
41 set => this.country = value;
42 }
43
44 [DefaultValueStringEmpty]
45 public string Region
46 {
47 get => this.region;
48 set => this.region = value;
49 }
50
51 [DefaultValueStringEmpty]
52 public string City
53 {
54 get => this.city;
55 set => this.city = value;
56 }
57
58 public uint RangeStart
59 {
60 get => this.rangeStart;
61 set => this.rangeStart = value;
62 }
63
64 [DefaultValue(0L)]
65 public uint RangeEnd
66 {
67 get => this.rangeEnd;
68 set => this.rangeEnd = value;
69 }
70 }
71}
TypeNameSerialization
How the type name should be serialized.