hapCall.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 happyCall
  10. {
  11. [JsonProperty("id")]
  12. public string id { get; set; }
  13. [JsonProperty("msisdn")]
  14. public string msisdn { get; set; }
  15. [JsonProperty("code")]
  16. public string code { get; set; }
  17. [JsonProperty("sysdate")]
  18. public string sysdate { get; set; }
  19. [JsonProperty("isSub")]
  20. public string isSub { get; set; }
  21. [JsonProperty("isWin")]
  22. public string isWin { get; set; }
  23. [JsonProperty("type")]
  24. public string type { get; set; }
  25. public override string ToString()
  26. {
  27. return JsonConvert.SerializeObject(this);
  28. }
  29. }
  30. public class happyCallList
  31. {
  32. [JsonProperty("status")]
  33. public string status { get; set; }
  34. [JsonProperty("message")]
  35. public string message { get; set; }
  36. [JsonProperty("listHappCall")]
  37. public happyCall[] listHappCall { get; set; }
  38. public override string ToString()
  39. {
  40. return JsonConvert.SerializeObject(this);
  41. }
  42. }
  43. }