diff options
| author | Grant Limberg <glimberg@gmail.com> | 2015-10-23 15:36:42 -0700 |
|---|---|---|
| committer | Grant Limberg <glimberg@gmail.com> | 2015-10-23 15:36:42 -0700 |
| commit | 62059a91aa22cb8e109f96b9d2290136d599eca1 (patch) | |
| tree | 696bbce0f3a37d55df49e75964a4832c6d76788f /windows/WinUI/ZeroTierNetwork.cs | |
| parent | fe6960888a7a12a71d79059f52985cd21241658d (diff) | |
| download | infinitytier-62059a91aa22cb8e109f96b9d2290136d599eca1.tar.gz infinitytier-62059a91aa22cb8e109f96b9d2290136d599eca1.zip | |
C#-ifying stuff
Diffstat (limited to 'windows/WinUI/ZeroTierNetwork.cs')
| -rw-r--r-- | windows/WinUI/ZeroTierNetwork.cs | 56 |
1 files changed, 42 insertions, 14 deletions
diff --git a/windows/WinUI/ZeroTierNetwork.cs b/windows/WinUI/ZeroTierNetwork.cs index 2dec53d2..cce65441 100644 --- a/windows/WinUI/ZeroTierNetwork.cs +++ b/windows/WinUI/ZeroTierNetwork.cs @@ -3,24 +3,52 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Newtonsoft.Json; namespace WinUI { public class ZeroTierNetwork { - public string nwid; - public string mac; - public string name; - public string status; - public string type; - public int mtu; - public bool dhcp; - public bool bridge; - public bool broadcastEnabled; - public int portError; - public int netconfRevision; - public string[] multicastSubscriptions; - public string[] assignedAddresses; - public string portDeviceName; + [JsonProperty("nwid")] + public string NetworkId { get; set; } + + [JsonProperty("mac")] + public string MacAddress { get; set; } + + [JsonProperty("name")] + public string NetworkName { get; set; } + + [JsonProperty("status")] + public string NetworkStatus { get; set; } + + [JsonProperty("type")] + public string NetworkType { get; set; } + + [JsonProperty("mtu")] + public int MTU { get; set; } + + [JsonProperty("dhcp")] + public bool DHCP { get; set; } + + [JsonProperty("bridge")] + public bool Bridge { get; set ; } + + [JsonProperty("broadcastEnabled")] + public bool BroadcastEnabled { get ; set; } + + [JsonProperty("portError")] + public int PortError { get; set; } + + [JsonProperty("netconfRevision")] + public int NetconfRevision { get; set; } + + [JsonProperty("multicastSubscriptions")] + public string[] MulticastSubscriptions { get; set; } + + [JsonProperty("assignedAddresses")] + public string[] AssignedAddresses { get; set; } + + [JsonProperty("portDeviceName")] + public string DeviceName { get; set; } } } |
