usersInterests.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. // {"id":"123","code":"23","name":"1"}
  10. public class usersInterests
  11. {
  12. [JsonProperty("id")]
  13. public string id { get; set; }
  14. [JsonProperty("code")]
  15. public string code { get; set; }
  16. [JsonProperty("name")]
  17. public string name { get; set; }
  18. [JsonProperty("picture")]
  19. public string picture { get; set; }
  20. public override string ToString()
  21. {
  22. return JsonConvert.SerializeObject(this);
  23. }
  24. }
  25. public class usersInterestsList
  26. {
  27. [JsonProperty("status")]
  28. public string status { get; set; }
  29. [JsonProperty("message")]
  30. public string message { get; set; }
  31. [JsonProperty("listInterests")]
  32. public usersInterests[] listInterests { get; set; }
  33. public override string ToString()
  34. {
  35. return JsonConvert.SerializeObject(this);
  36. }
  37. }
  38. }