subList.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 subObj
  10. {
  11. [JsonProperty("msisdn")]
  12. public string msisdn { get; set; }
  13. [JsonProperty("registerDate")]
  14. public string registerDate { get; set; }
  15. [JsonProperty("cancelDate")]
  16. public string cancelDate { get; set; }
  17. [JsonProperty("chargeDate")]
  18. public string chargeDate { get; set; }
  19. [JsonProperty("serviceCode")]
  20. public string serviceCode { get; set; }
  21. [JsonProperty("serviceName")]
  22. public string serviceName { get; set; }
  23. [JsonProperty("serviceId")]
  24. public string serviceId { get; set; }
  25. [JsonProperty("subserviceId")]
  26. public string subserviceId { get; set; }
  27. [JsonProperty("isactive")]
  28. public string isactive { get; set; }
  29. [JsonProperty("registerChannel")]
  30. public string registerChannel { get; set; }
  31. [JsonProperty("cancelChannel")]
  32. public string cancelChannel { get; set; }
  33. public override string ToString()
  34. {
  35. return JsonConvert.SerializeObject(this);
  36. }
  37. }
  38. public class subList
  39. {
  40. [JsonProperty("status")]
  41. public string status { get; set; }
  42. [JsonProperty("message")]
  43. public string message { get; set; }
  44. [JsonProperty("list")]
  45. public subObj[] list { get; set; }
  46. public override string ToString()
  47. {
  48. return JsonConvert.SerializeObject(this);
  49. }
  50. }
  51. }