Initial peers page

This commit is contained in:
Grant Limberg 2015-10-26 19:21:21 -07:00
commit 095539de29
6 changed files with 98 additions and 2 deletions

View file

@ -30,6 +30,17 @@ namespace WinUI
[JsonProperty("version")]
public string Version { get; set; }
public string VersionString
{
get
{
if (Version == "-1.-1.-1")
return "-";
else
return Version;
}
}
[JsonProperty("latency")]
public string Latency { get; set; }
@ -38,5 +49,18 @@ namespace WinUI
[JsonProperty("paths")]
public List<ZeroTierPeerPhysicalPath> Paths { get; set; }
public string DataPaths
{
get
{
string pathStr = "";
foreach(ZeroTierPeerPhysicalPath path in Paths)
{
pathStr += path.Address + "\n";
}
return pathStr;
}
}
}
}