campaignObj.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using ApiProcess.Models.bet;
  6. using CommonObj.model;
  7. using Newtonsoft.Json;
  8. namespace ApiProcess.Models.balance
  9. {
  10. public class campaignObj
  11. {
  12. [JsonProperty("id")]
  13. public string id { get; set; }
  14. [JsonProperty("code")]
  15. public string code { get; set; }
  16. [JsonProperty("name")]
  17. public string name { get; set; }
  18. [JsonProperty("fromDate")]
  19. public string fromDate { get; set; }
  20. [JsonProperty("toDate")]
  21. public string toDate { get; set; }
  22. [JsonProperty("fromHour")]
  23. public string fromHour { get; set; }
  24. [JsonProperty("toHour")]
  25. public string toHour { get; set; }
  26. [JsonProperty("rule")]
  27. public string rule { get; set; }
  28. [JsonProperty("priority")]
  29. public string priority { get; set; }
  30. [JsonProperty("numberDisplay")]
  31. public string numberDisplay { get; set; }
  32. [JsonProperty("addType")]
  33. public string addType { get; set; }
  34. [JsonProperty("title")]
  35. public string title { get; set; }
  36. [JsonProperty("isReload")]
  37. public string isReload { get; set; }
  38. [JsonProperty("isDefault")]
  39. public string isDefault { get; set; }
  40. [JsonProperty("isMyService")]
  41. public string isMyService { get; set; }
  42. [JsonProperty("balanceId")]
  43. public string balanceId { get; set; }
  44. [JsonProperty("expireDateId")]
  45. public string expireDateId { get; set; }
  46. [JsonProperty("status")]
  47. public string status { get; set; }
  48. [JsonProperty("note")]
  49. public string note { get; set; }
  50. [JsonProperty("usersCreated")]
  51. public string usersCreated { get; set; }
  52. [JsonProperty("dateCreated")]
  53. public string dateCreated { get; set; }
  54. [JsonProperty("usersUpdate")]
  55. public string usersUpdate { get; set; }
  56. [JsonProperty("dateUpdate")]
  57. public string dateUpdate { get; set; }
  58. [JsonProperty("listShortCodeMapCam")]
  59. public List<campaignScObj> listShortCodeMapCam { get; set; }
  60. [JsonProperty("listBalanceMapCam")]
  61. public List<campaignBalObj> listBalanceMapCam { get; set; }
  62. [JsonProperty("listExpireMapCam")]
  63. public List<campaignExpObj> listExpireMapCam { get; set; }
  64. [JsonProperty("listServiceMapCam")]
  65. public List<campaignAddObj> listServiceMapCam { get; set; }
  66. [JsonProperty("listSubMapCam")]
  67. public List<campaignSubObj> listSubMapCam { get; set; }
  68. public override string ToString()
  69. {
  70. return JsonConvert.SerializeObject(this);
  71. }
  72. }
  73. public class campaignObjList : Response
  74. {
  75. [JsonProperty("rowsOnPage")]
  76. public string rowsOnPage { get; set; }
  77. [JsonProperty("seqPage")]
  78. public string seqPage { get; set; }
  79. [JsonProperty("totalPage")]
  80. public string totalPage { get; set; }
  81. [JsonProperty("campaignObjList")]
  82. public List<campaignObj> list { get; set; }
  83. public override string ToString()
  84. {
  85. return JsonConvert.SerializeObject(this);
  86. }
  87. }
  88. public class campaignInsert : Response
  89. {
  90. [JsonProperty("id")]
  91. public string id { get; set; }
  92. public override string ToString()
  93. {
  94. return JsonConvert.SerializeObject(this);
  95. }
  96. }
  97. public class campaignCalebdarObj
  98. {
  99. [JsonProperty("date")]
  100. public string date { get; set; }
  101. [JsonProperty("list")]
  102. public List<campaignObj> list { get; set; }
  103. public override string ToString()
  104. {
  105. return JsonConvert.SerializeObject(this);
  106. }
  107. }
  108. public class campaignCalebdarResponse : Response
  109. {
  110. [JsonProperty("list")]
  111. public List<campaignCalebdarObj> list { get; set; }
  112. public override string ToString()
  113. {
  114. return JsonConvert.SerializeObject(this);
  115. }
  116. }
  117. }