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 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); } } }