CentralNetwork.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. class CentralNetwork
  10. {
  11. [JsonProperty("id")]
  12. public string Id { get; set; }
  13. [JsonProperty("type")]
  14. public string Type { get; set; }
  15. [JsonProperty("clock")]
  16. public UInt64 Clock { get; set; }
  17. [JsonProperty("rulesSource")]
  18. public string RulesSource { get; set; }
  19. [JsonProperty("description")]
  20. public string Description { get; set; }
  21. [JsonProperty("ownerId")]
  22. public string OwnerID { get; set; }
  23. [JsonProperty("onlineMemberCount")]
  24. public int OnlineMemberCount { get; set; }
  25. [JsonProperty("config")]
  26. public CentralNetworkConfig Config { get; set; }
  27. public class CentralNetworkConfig
  28. {
  29. [JsonProperty("id")]
  30. public string Id { get; set; }
  31. [JsonProperty("nwid")]
  32. public string NetworkID { get; set; }
  33. [JsonProperty("name")]
  34. public string Name { get; set; }
  35. }
  36. }
  37. }