NaturalGas.cs 723 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Text.Json.Serialization;
  2. namespace economy.Models.Price.Global.NaturalGas
  3. {
  4. public class Response
  5. {
  6. [JsonPropertyName("name")]
  7. public string Name { get; set; }
  8. [JsonPropertyName("interval")]
  9. public string Interval { get; set; }
  10. [JsonPropertyName("unit")]
  11. public string Unit { get; set; }
  12. [JsonPropertyName("data")]
  13. public List<Data> Data { get; set; }
  14. }
  15. public class Data
  16. {
  17. public int Num { get; set; }
  18. [JsonPropertyName("date")]
  19. public string Date { get; set; }
  20. [JsonPropertyName("value")]
  21. public string Value { get; set; }
  22. public int KRW { get; set; } = 0;
  23. }
  24. }