International.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. using System.Text.Json.Serialization;
  2. namespace economy.Models.International
  3. {
  4. // 검색결과 변수
  5. public class Response
  6. {
  7. [JsonPropertyName("result")]
  8. public int Result { get; set; }
  9. [JsonPropertyName("cur_fund")]
  10. public string? CurFund { get; set; }
  11. [JsonPropertyName("sfln_intrc_nm")]
  12. public string? SflnIntrcNm { get; set; }
  13. [JsonPropertyName("int_r")]
  14. public string? IntR { get; set; }
  15. [JsonPropertyName("sofr_list")]
  16. public List<Data>? SofrList { get; set; }
  17. [JsonPropertyName("estr_list")]
  18. public List<Data>? EstrList { get; set; }
  19. [JsonPropertyName("euribor_list")]
  20. public List<Data>? EuriborList { get; set; }
  21. [JsonPropertyName("tona_list")]
  22. public List<Data>? TonaList { get; set; }
  23. [JsonPropertyName("tibor_list")]
  24. public List<Data>? TiborList { get; set; }
  25. [JsonPropertyName("swapRfr_list")]
  26. public List<Data>? SwapRfrList { get; set; }
  27. [JsonPropertyName("libor_list")]
  28. public List<Data>? LiborList { get; set; }
  29. [JsonPropertyName("swap_list")]
  30. public List<Data>? SwapList { get; set; }
  31. [JsonPropertyName("cirr_list")]
  32. public List<Data>? CirrList { get; set; }
  33. [JsonPropertyName("new_cirr_list")]
  34. public List<Data>? NewCirrList { get; set; }
  35. }
  36. public class Data
  37. {
  38. [JsonPropertyName("result")]
  39. public int Result { get; set; }
  40. [JsonPropertyName("cur_fund")]
  41. public string? CurFund { get; set; } // 통화
  42. [JsonPropertyName("sfln_intrc_nm")]
  43. public string? InterestName { get; set; } // 기간
  44. [JsonPropertyName("int_r")]
  45. public string? InterestRate { get; set; } // 금리
  46. [JsonPropertyName("sofr_list")]
  47. public object? SofrList { get; set; }
  48. [JsonPropertyName("estr_list")]
  49. public object? EstrList { get; set; }
  50. [JsonPropertyName("euribor_list")]
  51. public object? EuriborList { get; set; }
  52. [JsonPropertyName("tona_list")]
  53. public object? TonaList { get; set; }
  54. [JsonPropertyName("tibor_list")]
  55. public object? TiborList { get; set; }
  56. [JsonPropertyName("swapRfr_list")]
  57. public object? SwapRfrList { get; set; }
  58. [JsonPropertyName("libor_list")]
  59. public object? LiborList { get; set; }
  60. [JsonPropertyName("swap_list")]
  61. public object? SwapList { get; set; }
  62. [JsonPropertyName("cirr_list")]
  63. public object? CirrList { get; set; }
  64. [JsonPropertyName("new_cirr_list")]
  65. public object? NewCirrList { get; set; }
  66. }
  67. }