using Newtonsoft.Json; using System.Text.Json.Serialization; namespace ConvertLog.common { public class CommonObj { public CommonObj() { } } public class LoginResponse { [JsonProperty("id")] public string id { get; set; } [JsonProperty("fullName")] public string fullName { get; set; } [JsonProperty("role")] public string role { get; set; } [JsonProperty("isActive")] public string isActive { get; set; } } public class structPrizeObj { [JsonProperty("id")] public string id { get; set; } [JsonProperty("code")] public string code { get; set; } [JsonProperty("name")] public string name { get; set; } [JsonProperty("display")] public string display { get; set; } [JsonProperty("money")] public string money { get; set; } [JsonProperty("groupId")] public string groupId { get; set; } [JsonProperty("groupName")] public string groupName { get; set; } } public class structPrizeDisPlayObj: structPrizeObj { [JsonProperty("totalDrawThisMonth")] public string totalDrawThisMonth { get; set; } [JsonProperty("totalMoneyThisMonth")] public string totalMoneyThisMonth { get; set; } [JsonProperty("totalDrawPreviousMonth")] public string totalDrawPreviousMonth { get; set; } [JsonProperty("totalMoneyPreviousMonth")] public string totalMoneyPreviousMonth { get; set; } [JsonProperty("totalDrawThisMonthMore")] public string totalDrawThisMonthMore { get; set; } [JsonProperty("totalMoneyThisMonthMore")] public string totalMoneyThisMonthMore { get; set; } [JsonProperty("unitOfPrize")] public string unitOfPrize { get; set; } [JsonProperty("length")] public string length { get; set; } [JsonProperty("unitOfPrizeThisMonth")] public string unitOfPrizeThisMonth { get; set; } [JsonProperty("unitOfPrizePreviousMonth")] public string unitOfPrizePreviousMonth { get; set; } [JsonProperty("unitOfPrizeThisMonthMore")] public string unitOfPrizeThisMonthMore { get; set; } } public class prizeOfTermObj { [JsonProperty("id")] public string id { get; set; } [JsonProperty("termId")] public string termId { get; set; } [JsonProperty("prizeId")] public string prizeId { get; set; } [JsonProperty("prizeName")] public string prizeName { get; set; } [JsonProperty("prizeDisplay")] public string prizeDisplay { get; set; } [JsonProperty("prizeDisplayNew")] public string prizeDisplayNew { get; set; } [JsonProperty("groupId")] public string groupId { get; set; } [JsonProperty("groupName")] public string groupName { get; set; } [JsonProperty("prizeMoney")] public string prizeMoney { get; set; } [JsonProperty("prizeType")] public string prizeType { get; set; } [JsonProperty("prizeStatus")] public string prizeStatus { get; set; } [JsonProperty("drawStatus")] public string drawStatus { get; set; } [JsonProperty("totalDraw")] public string totalDraw { get; set; } [JsonProperty("totalDrawAll")] public string totalDrawAll { get; set; } [JsonProperty("totalDrawAccept")] public string totalDrawAccept { get; set; } [JsonProperty("totalDrawAcceptOrder")] public string totalDrawAcceptOrder { get; set; } [JsonProperty("totalDrawRemain")] public string totalDrawRemain { get; set; } [JsonProperty("totalDrawReject")] public string totalDrawReject { get; set; } [JsonProperty("totalDrawClear")] public string totalDrawClear { get; set; } [JsonProperty("totalDrawSold")] public string totalDrawSold { get; set; } [JsonProperty("totalDrawUnsold")] public string totalDrawUnsold { get; set; } [JsonProperty("totalDrawUnprint")] public string totalDrawUnprint { get; set; } [JsonProperty("prResult")] public string prResult { get; set; } [JsonProperty("prResultStatus")] public string prResultStatus { get; set; } [JsonProperty("prResultStatusMsg")] public string prResultStatusMsg { get; set; } [JsonProperty("prTotalSold")] public string prTotalSold { get; set; } [JsonProperty("prTotalUnsold")] public string prTotalUnsold { get; set; } [JsonProperty("prStrReplace")] public string prStrReplace { get; set; } [JsonProperty("prStrLength")] public string prStrLength { get; set; } [JsonProperty("prIsMore")] public string prIsMore { get; set; } [JsonProperty("prWaiwaiStrResult")] public string prWaiwaiStrResult { get; set; } [JsonProperty("nowResult")] public string nowResult { get; set; } [JsonProperty("nowResultEn")] public string nowResultEn { get; set; } [JsonProperty("nowResultStatus")] public string nowResultStatus { get; set; } [JsonProperty("nowResultStatusMsg")] public string nowResultStatusMsg { get; set; } [JsonProperty("nowTotalSold")] public string nowTotalSold { get; set; } [JsonProperty("nowTotalUnsold")] public string nowTotalUnsold { get; set; } [JsonProperty("nowStrReplace")] public string nowStrReplace { get; set; } [JsonProperty("nowStrLength")] public string nowStrLength { get; set; } [JsonProperty("nowIsMore")] public string nowIsMore { get; set; } [JsonProperty("nowWaiwaiStrResult")] public string nowWaiwaiStrResult { get; set; } [JsonProperty("termOnline")] public string termOnline { get; set; } [JsonProperty("totalMoreDraw")] public string totalMoreDraw { get; set; } [JsonProperty("prizeOrder")] public string prizeOrder { get; set; } [JsonProperty("prizeUnit")] public string prizeUnit { get; set; } [JsonProperty("timeUpdateResult")] public string timeUpdateResult { get; set; } [JsonProperty("secondWating")] public string secondWating { get; set; } [JsonProperty("status")] public string status { get; set; } } public class prizeInReqeustObj { [JsonProperty("termId")] public string termId { get; set; } [JsonProperty("type")] public string type { get; set; } [JsonProperty("data")] public List data { get; set; } } public class prizeInObj { //code [JsonProperty("prizeId")] public string prizeId { get; set; } [JsonProperty("totalDraw")] public string totalDraw { get; set; } //Nhung truong sau day them moi [JsonProperty("prizeTypeId")] public string prizeTypeId { get; set; } [JsonProperty("prizeTypeName")] public string prizeTypeName { get; set; } [JsonProperty("prizeMoney")] public string prizeMoney { get; set; } [JsonProperty("prizeCode")] public string prizeCode { get; set; } [JsonProperty("prizeNameEn")] public string prizeNameEn { get; set; } [JsonProperty("prizeNameMy")] public string prizeNameMy { get; set; } [JsonProperty("prizeNumBall")] public string prizeNumBall { get; set; } [JsonProperty("prizeNum")] public string prizeNum { get; set; } [JsonProperty("prizeTermIdIrd")] public string prizeTermIdIrd { get; set; } [JsonProperty("prizeOrder")] public string prizeOrder { get; set; } } public class uploadObj { [JsonProperty("id")] public string id { get; set; } [JsonProperty("termId")] public string termId { get; set; } [JsonProperty("type")] public string type { get; set; } [JsonProperty("createDate")] public string createDate { get; set; } [JsonProperty("status")] public string status { get; set; } [JsonProperty("totalFile")] public string totalFile { get; set; } [JsonProperty("totalRecord")] public string totalRecord { get; set; } [JsonProperty("totalSuccess")] public string totalSuccess { get; set; } [JsonProperty("totalFalse")] public string totalFalse { get; set; } [JsonProperty("listFile")] public List listFile { get; set; } } public class uploadFileObj { [JsonProperty("id")] public string id { get; set; } [JsonProperty("fileId")] public string fileId { get; set; } [JsonProperty("fileName")] public string fileName { get; set; } [JsonProperty("status")] public string status { get; set; } [JsonProperty("totalRecord")] public string totalRecord { get; set; } [JsonProperty("totalRecordSucess")] public string totalRecordSucess { get; set; } [JsonProperty("totalRecordFalse")] public string totalRecordFalse { get; set; } [JsonProperty("createDate")] public string createDate { get; set; } [JsonProperty("startDate")] public string startDate { get; set; } [JsonProperty("endDate")] public string endDate { get; set; } [JsonProperty("termUploadId")] public string termUploadId { get; set; } } public class uploadFileReqeustObj: ResponseCommon { [JsonProperty("termUploadId")] public string termUploadId { get; set; } [JsonProperty("data")] public List data { get; set; } } public class fileInObj: ResponseCommon { [JsonProperty("fileId")] public string fileId { get; set; } [JsonProperty("fileName")] public string fileName { get; set; } } public class ResponseCommon { public ResponseCommon() { this.errorCode = "2910"; this.message = "System update"; this.httpStatusCode = "200"; } public ResponseCommon(string _errCode, string _msg) { this.errorCode = _errCode; this.message = _msg; } [JsonProperty("errorCode")] public string errorCode { get; set; } [JsonProperty("message")] public string message { get; set; } //[JsonProperty("httpStatusCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.Always)] public string httpStatusCode { get; set; } } public class resultOfTermObj { [JsonProperty("id")] public string id { get; set; } [JsonProperty("code")] public string code { get; set; } [JsonProperty("name")] public string name { get; set; } [JsonProperty("display")] public string display { get; set; } [JsonProperty("money")] public string money { get; set; } [JsonProperty("groupId")] public string groupId { get; set; } [JsonProperty("groupName")] public string groupName { get; set; } [JsonProperty("result")] public string result { get; set; } } public class resultOfTermObjV2 { [JsonProperty("prizeId")] public string prizeId { get; set; } [JsonProperty("prizeName")] public string prizeName { get; set; } [JsonProperty("prizeDisplay")] public string prizeDisplay { get; set; } [JsonProperty("prizeMoney")] public string prizeMoney { get; set; } [JsonProperty("prizeOrder")] public string prizeOrder { get; set; } [JsonProperty("prizeResult")] public string prizeResult { get; set; } [JsonProperty("prizeResultArr")] public List prizeResultArr { get; set; } [JsonProperty("prizeResultThisTerm")] public string prizeResultThisTerm { get; set; } [JsonProperty("prizeResultThisTermArr")] public List prizeResultThisTermArr { get; set; } [JsonProperty("prizeResultThisMoreTerm")] public string prizeResultThisMoreTerm { get; set; } [JsonProperty("prizeResultThisMoreTermArr")] public List prizeResultThisMoreTermArr { get; set; } [JsonProperty("prizeResultPreTerm")] public string prizeResultPreTerm { get; set; } [JsonProperty("prizeResultPreTermArr")] public List prizeResultPreTermArr { get; set; } [JsonProperty("prizeResultMoreTerm")] public string prizeResultMoreTerm { get; set; } [JsonProperty("prizeResultMoreTermArr")] public List prizeResultMoreTermArr { get; set; } [JsonProperty("groupId")] public string groupId { get; set; } [JsonProperty("groupName")] public string groupName { get; set; } [JsonProperty("unit")] public string unit { get; set; } [JsonProperty("length")] public string length { get; set; } [JsonProperty("currentSold")] public string currentSold { get; set; } [JsonProperty("currentMoney")] public string currentMoney { get; set; } [JsonProperty("perviousSold")] public string perviousSold { get; set; } [JsonProperty("perviousMoney")] public string perviousMoney { get; set; } [JsonProperty("moreSold")] public string moreSold { get; set; } [JsonProperty("moreMoney")] public string moreMoney { get; set; } [JsonProperty("totalRevenue")] public string totalRevenue { get; set; } [JsonProperty("totalRevenuePri")] public string totalRevenuePri { get; set; } [JsonProperty("limitJackport")] public string limitJackport { get; set; } [JsonProperty("curentRevenue")] public string curentRevenue { get; set; } [JsonProperty("curentRenueWinner")] public string curentRenueWinner { get; set; } [JsonProperty("curentJackport")] public string curentJackport { get; set; } [JsonProperty("remainJackport")] public string remainJackport { get; set; } [JsonProperty("curentOther")] public string curentOther { get; set; } [JsonProperty("remainOther")] public string remainOther { get; set; } [JsonProperty("irdTerm")] public string irdTerm { get; set; } } public class resultObj { [JsonProperty("id")] public string id { get; set; } [JsonProperty("ticket")] public string ticket { get; set; } [JsonProperty("type")] public string type { get; set; } [JsonProperty("action")] public string action { get; set; } [JsonProperty("totalSold")] public string totalSold { get; set; } [JsonProperty("money")] public string money { get; set; } [JsonProperty("totalMoney")] public string totalMoney { get; set; } [JsonProperty("isDelete")] public string isDelete { get; set; } } public class importObj { [JsonProperty("uploadId")] public string uploadId { get; set; } [JsonProperty("uploadDetailId")] public string uploadDetailId { get; set; } [JsonProperty("type")] public string type { get; set; } [JsonProperty("ticket")] public string ticket { get; set; } } public class oneImportObj { [JsonProperty("uploadId")] public string uploadId { get; set; } [JsonProperty("uploadDetailId")] public string uploadDetailId { get; set; } [JsonProperty("importObjList")] public List importObjList { get; set; } public oneImportObj(string uploadId, string uploadDetailId, List importObjList) { this.uploadId = uploadId; this.uploadDetailId = uploadDetailId; this.importObjList = importObjList; } } public class totalFileImportObj { [JsonProperty("uploadId")] public string uploadId { get; set; } [JsonProperty("uploadDetailId")] public string uploadDetailId { get; set; } [JsonProperty("totalBlock")] public string totalBlock { get; set; } [JsonProperty("totalRow")] public string totalRow { get; set; } [JsonProperty("totalRowErr")] public string totalRowErr { get; set; } [JsonProperty("isFinsh")] public string isFinsh { get; set; } public totalFileImportObj(string uploadId, string uploadDetailId, string totalBlock, string totalRow, string totalRowErr, string isFinsh) { this.uploadId = uploadId; this.uploadDetailId = uploadDetailId; this.totalBlock = totalBlock; this.totalRow = totalRow; this.totalRowErr = totalRowErr; this.isFinsh = isFinsh; } } public class paramObj { [JsonProperty("id")] public string id { get; set; } [JsonProperty("code")] public string code { get; set; } [JsonProperty("display0")] public string display0 { get; set; } [JsonProperty("display1")] public string display1 { get; set; } } public class drawResult { public string Id { get; set; } public double Num { get; set; } } public class winnerObj { [JsonProperty("ticket")] public string ticket { get; set; } [JsonProperty("result")] public string result { get; set; } [JsonProperty("prizeName")] public string prizeName { get; set; } [JsonProperty("prizeDisplay")] public string prizeDisplay { get; set; } [JsonProperty("prizeGroupName")] public string prizeGroupName { get; set; } } public class waiResult { [JsonProperty("id")] public string id { get; set; } [JsonProperty("result")] public string result { get; set; } [JsonProperty("resultLocal")] public string resultLocal { get; set; } [JsonProperty("termId")] public string termId { get; set; } [JsonProperty("prizeId")] public string prizeId { get; set; } [JsonProperty("prizeName")] public string prizeName { get; set; } [JsonProperty("prizeDisplay")] public string prizeDisplay { get; set; } [JsonProperty("groupId")] public string groupId { get; set; } [JsonProperty("groupName")] public string groupName { get; set; } [JsonProperty("prizeMoney")] public string prizeMoney { get; set; } [JsonProperty("prizeType")] public string prizeType { get; set; } [JsonProperty("lSold")] public List lSold { get; set; } [JsonProperty("lUnSold")] public List lUnSold { get; set; } public waiResult() { lSold = new List(); lUnSold = new List(); } } public class waiRange { [JsonProperty("from")] public string from { get; set; } [JsonProperty("to")] public string to { get; set; } [JsonProperty("total")] public string total { get; set; } [JsonProperty("seq")] public string seq { get; set; } } }