ZeroTierNetwork.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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("assignedAddresses")]
  34. public string[] AssignedAddresses { get; set; }
  35. [JsonProperty("routes")]
  36. public NetworkRoute[] Routes { get; set; }
  37. [JsonProperty("portDeviceName")]
  38. public string DeviceName { get; set; }
  39. [JsonProperty("allowManaged")]
  40. public bool AllowManaged { get; set; }
  41. [JsonProperty("allowGlobal")]
  42. public bool AllowGlobal { get; set; }
  43. [JsonProperty("allowDefault")]
  44. public bool AllowDefault { get; set; }
  45. }
  46. }