| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using WebService;
- namespace WebPortal.Models
- {
- public class AccountModel
- {
- public subMb subMb { get; set; }
- public Dictionary<string, balanceObj> mapBalance { get; set; }
- //public subInfo accountInfo { get; set; }
- public packageInfo packgInfo { get; set; }
- public List<PointExpire> lstPointExpire { get; set; }
- public LoyaltyDetail loyalInfo { get; set; }
- public pointExchangeObj[] listVoucher { get; set; }
- }
- public class AccountLoyaltyReq
- {
- public String phoneNumber { get; set; }
- public AccountLoyaltyReq(String phoneNumber)
- {
- this.phoneNumber = phoneNumber;
- }
- }
- public class LoyaltyDetail
- {
- public int maxPoint { get; set; }
- public string rankName { get; set; }
- public int consumerPoint { get; set; }
- public int accumulatePoint { get; set; }
- }
- public class PointExpire
- {
- public string dateExpire { get; set; }
- public int pointExpire { get; set; }
- }
- public class AccountLoyaltyRes
- {
- public int responseCode { get; set; }
- public string message { get; set; }
- public string code { get; set; }
- public LoyaltyDetail loyaltyDetailRes { get; set; }
- public List<PointExpire> lstPointExpire { get; set; }
- public static AccountLoyaltyRes Parse(String json)
- {
- return JsonConvert.DeserializeObject<AccountLoyaltyRes>(json);
- }
- }
- }
|