C#-ifying stuff

This commit is contained in:
Grant Limberg 2015-10-23 15:36:42 -07:00
parent fe6960888a
commit 62059a91aa
8 changed files with 175 additions and 46 deletions

View file

@ -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; }
}
}