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