ZeroTierNetwork.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Newtonsoft.Json;
  7. namespace WinUI
  8. {
  9. public class ZeroTierNetwork
  10. {
  11. [JsonProperty("nwid")]
  12. public string NetworkId { get; set; }
  13. [JsonProperty("mac")]
  14. public string MacAddress { get; set; }
  15. [JsonProperty("name")]
  16. public string NetworkName { get; set; }
  17. [JsonProperty("status")]
  18. public string NetworkStatus { get; set; }
  19. [JsonProperty("type")]
  20. public string NetworkType { get; set; }
  21. [JsonProperty("mtu")]
  22. public int MTU { get; set; }
  23. [JsonProperty("dhcp")]
  24. public bool DHCP { get; set; }
  25. [JsonProperty("bridge")]
  26. public bool Bridge { get; set ; }
  27. [JsonProperty("broadcastEnabled")]
  28. public bool BroadcastEnabled { get ; set; }
  29. [JsonProperty("portError")]
  30. public int PortError { get; set; }
  31. [JsonProperty("netconfRevision")]
  32. public int NetconfRevision { get; set; }
  33. [JsonProperty("multicastSubscriptions")]
  34. public string[] MulticastSubscriptions { get; set; }
  35. [JsonProperty("assignedAddresses")]
  36. public string[] AssignedAddresses { get; set; }
  37. [JsonProperty("portDeviceName")]
  38. public string DeviceName { get; set; }
  39. }
  40. }