AccountModel.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using WebService;
  7. namespace WebPortal.Models
  8. {
  9. public class AccountModel
  10. {
  11. public subMb subMb { get; set; }
  12. public Dictionary<string, balanceObj> mapBalance { get; set; }
  13. //public subInfo accountInfo { get; set; }
  14. public packageInfo packgInfo { get; set; }
  15. public List<PointExpire> lstPointExpire { get; set; }
  16. public LoyaltyDetail loyalInfo { get; set; }
  17. public pointExchangeObj[] listVoucher { get; set; }
  18. }
  19. public class AccountLoyaltyReq
  20. {
  21. public String phoneNumber { get; set; }
  22. public AccountLoyaltyReq(String phoneNumber)
  23. {
  24. this.phoneNumber = phoneNumber;
  25. }
  26. }
  27. public class LoyaltyDetail
  28. {
  29. public int maxPoint { get; set; }
  30. public string rankName { get; set; }
  31. public int consumerPoint { get; set; }
  32. public int accumulatePoint { get; set; }
  33. }
  34. public class PointExpire
  35. {
  36. public string dateExpire { get; set; }
  37. public int pointExpire { get; set; }
  38. }
  39. public class AccountLoyaltyRes
  40. {
  41. public int responseCode { get; set; }
  42. public string message { get; set; }
  43. public string code { get; set; }
  44. public LoyaltyDetail loyaltyDetailRes { get; set; }
  45. public List<PointExpire> lstPointExpire { get; set; }
  46. public static AccountLoyaltyRes Parse(String json)
  47. {
  48. return JsonConvert.DeserializeObject<AccountLoyaltyRes>(json);
  49. }
  50. }
  51. }