subServiceList.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 subServiceObj
  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("country")]
  18. public string country { get; set; }
  19. [JsonProperty("shortCode")]
  20. public string shortCode { get; set; }
  21. [JsonProperty("prefix")]
  22. public string prefix { get; set; }
  23. }
  24. public class subServiceList
  25. {
  26. [JsonProperty("status")]
  27. public string status { get; set; }
  28. [JsonProperty("message")]
  29. public string message { get; set; }
  30. [JsonProperty("listSubService")]
  31. public subServiceObj[] listSubService { get; set; }
  32. public override string ToString()
  33. {
  34. return JsonConvert.SerializeObject(this);
  35. }
  36. }
  37. }