diff options
Diffstat (limited to 'windows/WinUI/ZeroTierStatus.cs')
-rw-r--r-- | windows/WinUI/ZeroTierStatus.cs | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/windows/WinUI/ZeroTierStatus.cs b/windows/WinUI/ZeroTierStatus.cs index 9eafdb26..2851d017 100644 --- a/windows/WinUI/ZeroTierStatus.cs +++ b/windows/WinUI/ZeroTierStatus.cs @@ -3,19 +3,37 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Newtonsoft.Json; namespace WinUI { public class ZeroTierStatus { - public string address; - public string publicIdentity; - public bool online; - public bool tcpFallbackActive; - public int versionMajor; - public int versionMinor; - public int versionRev; - public string version; - public UInt64 clock; + [JsonProperty("address")] + public string Address { get; set; } + + [JsonProperty("publicIdentity")] + public string PublicIdentity { get; set; } + + [JsonProperty("online")] + public bool Online { get; set; } + + [JsonProperty("tcpFallbackActive")] + public bool TcpFallbackActive { get; set; } + + [JsonProperty("versionMajor")] + public int VersionMajor { get; set; } + + [JsonProperty("versionMinor")] + public int VersionMinor { get; set; } + + [JsonProperty("versionRev")] + public int VersionRev { get; set; } + + [JsonProperty("version")] + public string Version { get; set; } + + [JsonProperty("clock")] + public UInt64 Clock { get; set; } } } |