buyTicketObj.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. using CommonObj.model;
  2. using Newtonsoft.Json;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace CommonObj.lotoModel
  7. {
  8. public class ticketObj
  9. {
  10. [JsonProperty("code")]
  11. public string code { get; set; }
  12. [JsonProperty("money")]
  13. public string money { get; set; }
  14. public override string ToString()
  15. {
  16. return JsonConvert.SerializeObject(this);
  17. }
  18. }
  19. public class buyTicketObj
  20. {
  21. [JsonProperty("requestId")]
  22. public string requestId { get; set; }
  23. [JsonProperty("channel")]
  24. public string channel { get; set; }
  25. [JsonProperty("msisdn")]
  26. public string msisdn { get; set; }
  27. [JsonProperty("language")]
  28. public string language { get; set; }
  29. [JsonProperty("gameId")]
  30. public string gameId { get; set; }
  31. [JsonProperty("promotionCode")]
  32. public string promotionCode { get; set; }
  33. [JsonProperty("token")]
  34. public string token { get; set; }
  35. [JsonProperty("ticket")]
  36. public ticketObj[] ticket { get; set; }
  37. public override string ToString()
  38. {
  39. return JsonConvert.SerializeObject(this);
  40. }
  41. //Cac thong tin tra ve khac
  42. [JsonProperty("buyTicketResponse")]
  43. public buyTicketResponse buyTicketResponse { get; set; }
  44. }
  45. public class buyTicketResponse: Response
  46. {
  47. [JsonProperty("requestId")]
  48. public string requestId { get; set; }
  49. [JsonProperty("termObj")]
  50. public termObj termObj { get; set; }
  51. [JsonProperty("isPromotion")]
  52. public string isPromotion { get; set; }
  53. [JsonProperty("totalMoney")]
  54. public string totalMoney { get; set; }
  55. [JsonProperty("totalMoneyPromotion")]
  56. public string totalMoneyPromotion { get; set; }
  57. [JsonProperty("totalMoneyPayment")]
  58. public string totalMoneyPayment { get; set; }
  59. [JsonProperty("promotionId")]
  60. public string promotionId { get; set; }
  61. [JsonProperty("transId")]
  62. public string transId { get; set; }
  63. public override string ToString()
  64. {
  65. return JsonConvert.SerializeObject(this);
  66. }
  67. }
  68. public class searchTicketResponse : Response
  69. {
  70. [JsonProperty("requestId")]
  71. public string requestId { get; set; }
  72. [JsonProperty("termObj")]
  73. public termObj termObj { get; set; }
  74. [JsonProperty("rowOnPage")]
  75. public string rowOnPage { get; set; }
  76. [JsonProperty("totalRow")]
  77. public string totalRow { get; set; }
  78. [JsonProperty("totalPage")]
  79. public string totalPage { get; set; }
  80. [JsonProperty("seqPage")]
  81. public string seqPage { get; set; }
  82. [JsonProperty("transId")]
  83. public string transId { get; set; }
  84. public override string ToString()
  85. {
  86. return JsonConvert.SerializeObject(this);
  87. }
  88. }
  89. public class searchTicketResult : Response
  90. {
  91. [JsonProperty("listTicket")]
  92. public List<string> listTicket { get; set; }
  93. [JsonProperty("searchInfo")]
  94. public searchTicketResponse searchInfo { get; set; }
  95. public override string ToString()
  96. {
  97. return JsonConvert.SerializeObject(this);
  98. }
  99. }
  100. public class confirmTiketResponse : Response
  101. {
  102. [JsonProperty("requestId")]
  103. public string requestId { get; set; }
  104. [JsonProperty("transId")]
  105. public string transId { get; set; }
  106. [JsonProperty("orderId")]
  107. public string orderId { get; set; }
  108. [JsonProperty("listTiketId")]
  109. public string listTiketId { get; set; }
  110. public override string ToString()
  111. {
  112. return JsonConvert.SerializeObject(this);
  113. }
  114. }
  115. public class getListTicketResponse : Response
  116. {
  117. [JsonProperty("requestId")]
  118. public string requestId { get; set; }
  119. [JsonProperty("termObj")]
  120. public termObj termObj { get; set; }
  121. [JsonProperty("ticket")]
  122. public string[] ticket { get; set; }
  123. public override string ToString()
  124. {
  125. return JsonConvert.SerializeObject(this);
  126. }
  127. }
  128. }