| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- using CommonObj.model;
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace CommonObj.lotoModel
- {
- public class ticketObj
- {
- [JsonProperty("code")]
- public string code { get; set; }
- [JsonProperty("money")]
- public string money { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class buyTicketObj
- {
- [JsonProperty("requestId")]
- public string requestId { get; set; }
- [JsonProperty("channel")]
- public string channel { get; set; }
- [JsonProperty("msisdn")]
- public string msisdn { get; set; }
- [JsonProperty("language")]
- public string language { get; set; }
- [JsonProperty("gameId")]
- public string gameId { get; set; }
- [JsonProperty("promotionCode")]
- public string promotionCode { get; set; }
- [JsonProperty("token")]
- public string token { get; set; }
- [JsonProperty("ticket")]
- public ticketObj[] ticket { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- //Cac thong tin tra ve khac
- [JsonProperty("buyTicketResponse")]
- public buyTicketResponse buyTicketResponse { get; set; }
- }
- public class buyTicketResponse: Response
- {
- [JsonProperty("requestId")]
- public string requestId { get; set; }
-
- [JsonProperty("termObj")]
- public termObj termObj { get; set; }
- [JsonProperty("isPromotion")]
- public string isPromotion { get; set; }
- [JsonProperty("totalMoney")]
- public string totalMoney { get; set; }
- [JsonProperty("totalMoneyPromotion")]
- public string totalMoneyPromotion { get; set; }
- [JsonProperty("totalMoneyPayment")]
- public string totalMoneyPayment { get; set; }
- [JsonProperty("promotionId")]
- public string promotionId { get; set; }
- [JsonProperty("transId")]
- public string transId { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class searchTicketResponse : Response
- {
- [JsonProperty("requestId")]
- public string requestId { get; set; }
- [JsonProperty("termObj")]
- public termObj termObj { get; set; }
- [JsonProperty("rowOnPage")]
- public string rowOnPage { get; set; }
- [JsonProperty("totalRow")]
- public string totalRow { get; set; }
- [JsonProperty("totalPage")]
- public string totalPage { get; set; }
- [JsonProperty("seqPage")]
- public string seqPage { get; set; }
- [JsonProperty("transId")]
- public string transId { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class searchTicketResult : Response
- {
- [JsonProperty("listTicket")]
- public List<string> listTicket { get; set; }
- [JsonProperty("searchInfo")]
- public searchTicketResponse searchInfo { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class confirmTiketResponse : Response
- {
- [JsonProperty("requestId")]
- public string requestId { get; set; }
- [JsonProperty("transId")]
- public string transId { get; set; }
- [JsonProperty("orderId")]
- public string orderId { get; set; }
- [JsonProperty("listTiketId")]
- public string listTiketId { get; set; }
-
-
-
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class getListTicketResponse : Response
- {
- [JsonProperty("requestId")]
- public string requestId { get; set; }
- [JsonProperty("termObj")]
- public termObj termObj { get; set; }
- [JsonProperty("ticket")]
- public string[] ticket { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- }
|