CentralUser.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 CentralUser
  10. {
  11. public class CentralGlobalPermissions
  12. {
  13. [JsonProperty("a")]
  14. public bool Administrator { get; set; }
  15. [JsonProperty("d")]
  16. public bool Delete { get; set; }
  17. [JsonProperty("m")]
  18. public bool Modify { get; set; }
  19. [JsonProperty("r")]
  20. public bool Read { get; set; }
  21. }
  22. [JsonProperty("id")]
  23. public string Id { get; set; }
  24. [JsonProperty("type")]
  25. public string Type { get; set; }
  26. [JsonProperty("clock")]
  27. public UInt64 Clock { get; set; }
  28. [JsonProperty("globalPermissions")]
  29. public CentralGlobalPermissions GlobalPermissions { get; set; }
  30. [JsonProperty("displayName")]
  31. public string DisplayName { get; set; }
  32. [JsonProperty("email")]
  33. public string Email { get; set; }
  34. [JsonProperty("smsNumber")]
  35. public string SmsNumber { get; set; }
  36. [JsonProperty("tokens")]
  37. public List<string> Tokens { get; set; }
  38. }
  39. }