FIFA.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using System.Text.Json.Serialization;
  2. namespace economy.Models.FIFA
  3. {
  4. public class Response
  5. {
  6. [JsonPropertyName("ContinuationToken")]
  7. public object ContinuationToken { get; set; }
  8. [JsonPropertyName("ContinuationHash")]
  9. public object ContinuationHash { get; set; }
  10. [JsonPropertyName("Results")]
  11. public List<Team> Results { get; set; }
  12. }
  13. public class TeamName
  14. {
  15. [JsonPropertyName("Locale")]
  16. public string Locale { get; set; }
  17. [JsonPropertyName("Description")]
  18. public string Description { get; set; }
  19. }
  20. public class Team
  21. {
  22. public int Num { get; set; } = 1;
  23. [JsonPropertyName("IdTeam")]
  24. public string IdTeam { get; set; }
  25. [JsonPropertyName("TeamName")]
  26. public List<TeamName> TeamName { get; set; }
  27. [JsonPropertyName("Gender")]
  28. public int Gender { get; set; }
  29. [JsonPropertyName("IdConfederation")]
  30. public string IdConfederation { get; set; }
  31. [JsonPropertyName("RankingMovement")]
  32. public int? RankingMovement { get; set; }
  33. [JsonPropertyName("RankingMovementString")]
  34. public string RankingMovementString { get; set; }
  35. [JsonPropertyName("ConfederationName")]
  36. public string ConfederationName { get; set; }
  37. [JsonPropertyName("IdCountry")]
  38. public string IdCountry { get; set; }
  39. [JsonPropertyName("Rank")]
  40. public int? Rank { get; set; }
  41. [JsonPropertyName("IdSchedule")]
  42. public string IdSchedule { get; set; }
  43. [JsonPropertyName("PrevRank")]
  44. public int? PrevRank { get; set; }
  45. [JsonPropertyName("EOYRank")]
  46. public int EOYRank { get; set; }
  47. [JsonPropertyName("TotalPoints")]
  48. public int TotalPoints { get; set; }
  49. [JsonPropertyName("DecimalTotalPoints")]
  50. public double DecimalTotalPoints { get; set; }
  51. [JsonPropertyName("PrevPoints")]
  52. public int PrevPoints { get; set; }
  53. [JsonPropertyName("StatusRanked")]
  54. public int StatusRanked { get; set; }
  55. [JsonPropertyName("DecimalPrevPoints")]
  56. public double DecimalPrevPoints { get; set; }
  57. [JsonPropertyName("EOYPoints")]
  58. public int EOYPoints { get; set; }
  59. [JsonPropertyName("DecimalEOYPoints")]
  60. public double DecimalEOYPoints { get; set; }
  61. [JsonPropertyName("Matches")]
  62. public int Matches { get; set; }
  63. [JsonPropertyName("PubDate")]
  64. public DateTime PubDate { get; set; }
  65. [JsonPropertyName("PrePubDate")]
  66. public DateTime? PrePubDate { get; set; }
  67. [JsonPropertyName("EOYPubDate")]
  68. public DateTime? EOYPubDate { get; set; }
  69. [JsonPropertyName("NextPubDate")]
  70. public DateTime? NextPubDate { get; set; }
  71. [JsonPropertyName("Properties")]
  72. public Dictionary<string, object> Properties { get; set; }
  73. [JsonPropertyName("IsUpdateable")]
  74. public object IsUpdateable { get; set; }
  75. public string FlagSrc { get; set; } // 국기 경로
  76. }
  77. }