summaryrefslogtreecommitdiff
path: root/windows/WinUI/CentralNetwork.cs
diff options
context:
space:
mode:
Diffstat (limited to 'windows/WinUI/CentralNetwork.cs')
-rw-r--r--windows/WinUI/CentralNetwork.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/windows/WinUI/CentralNetwork.cs b/windows/WinUI/CentralNetwork.cs
new file mode 100644
index 00000000..26ad5234
--- /dev/null
+++ b/windows/WinUI/CentralNetwork.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Newtonsoft.Json;
+
+namespace WinUI
+{
+ class CentralNetwork
+ {
+ [JsonProperty("id")]
+ public string Id { get; set; }
+
+ [JsonProperty("type")]
+ public string Type { get; set; }
+
+ [JsonProperty("clock")]
+ public UInt64 Clock { get; set; }
+
+ [JsonProperty("rulesSource")]
+ public string RulesSource { get; set; }
+
+ [JsonProperty("description")]
+ public string Description { get; set; }
+
+ [JsonProperty("ownerId")]
+ public string OwnerID { get; set; }
+
+ [JsonProperty("onlineMemberCount")]
+ public int OnlineMemberCount { get; set; }
+
+ [JsonProperty("config")]
+ public CentralNetworkConfig Config { get; set; }
+
+ public class CentralNetworkConfig
+ {
+ [JsonProperty("id")]
+ public string Id { get; set; }
+
+ [JsonProperty("nwid")]
+ public string NetworkID { get; set; }
+
+ [JsonProperty("name")]
+ public string Name { get; set; }
+ }
+ }
+}