usersGift.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Newtonsoft.Json;
  6. namespace ResfullApi.Models
  7. {
  8. [Serializable]
  9. public class usersGift
  10. {
  11. [JsonProperty("id")]
  12. public string id { get; set; }
  13. [JsonProperty("code")]
  14. public string code { get; set; }
  15. [JsonProperty("name")]
  16. public string name { get; set; }
  17. [JsonProperty("chargMoney")]
  18. public string chargMoney { get; set; }
  19. [JsonProperty("chargeCode")]
  20. public string chargeCode { get; set; }
  21. [JsonProperty("coin")]
  22. public string coin { get; set; }
  23. [JsonProperty("status")]
  24. public string status { get; set; }
  25. public override string ToString()
  26. {
  27. return JsonConvert.SerializeObject(this);
  28. }
  29. }
  30. public class usersGiftList
  31. {
  32. [JsonProperty("status")]
  33. public string status { get; set; }
  34. [JsonProperty("message")]
  35. public string message { get; set; }
  36. [JsonProperty("listGift")]
  37. public usersGift[] listGift { get; set; }
  38. public override string ToString()
  39. {
  40. return JsonConvert.SerializeObject(this);
  41. }
  42. }
  43. }