8 changed files with 175 additions and 46 deletions
@ -0,0 +1,42 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace WinUI |
||||
{ |
||||
public class ZeroTierPeer |
||||
{ |
||||
[JsonProperty("address")] |
||||
public string Address { get; set; } |
||||
|
||||
[JsonProperty("lastUnicastFrame")] |
||||
public int LastUnicastFrame { get; set; } |
||||
|
||||
[JsonProperty("lastMulticastFrame")] |
||||
public int LastMulticastFrame { 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("latency")] |
||||
public string Latency { get; set; } |
||||
|
||||
[JsonProperty("role")] |
||||
public string Role { get; set; } |
||||
|
||||
[JsonProperty("paths")] |
||||
public List<ZeroTierPeerPhysicalPath> Paths { get; set; } |
||||
} |
||||
} |
||||
@ -0,0 +1,27 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace WinUI |
||||
{ |
||||
public class ZeroTierPeerPhysicalPath |
||||
{ |
||||
[JsonProperty("address")] |
||||
public string Address { get; set; } |
||||
|
||||
[JsonProperty("lastSend")] |
||||
public int LastSend { get; set; } |
||||
|
||||
[JsonProperty("lastReceive")] |
||||
public int LastReceive { get; set; } |
||||
|
||||
[JsonProperty("fixed")] |
||||
public bool Fixed { get; set; } |
||||
|
||||
[JsonProperty("preferred")] |
||||
public bool Preferred { get; set; } |
||||
} |
||||
} |
||||
Loading…
Reference in new issue