usersObjProfile.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. // {"usersId":"123","fullName":"Buihuuquang","sex":"Nam","address":"Yen nghia","province":"HaDong","cardNumber":"123","email":"quangbh@yahoo.com","company":"Viettech","description":"ha ha","picture":"/data/quangbh.jpg"}
  10. public class usersObjProfile
  11. {
  12. [JsonProperty("status")]
  13. public string status { get; set; }
  14. [JsonProperty("message")]
  15. public string message { get; set; }
  16. [JsonProperty("id")]
  17. public string id { get; set; }
  18. [JsonProperty("usersId")]
  19. public string usersId { get; set; }
  20. [JsonProperty("users")]
  21. public string users { get; set; }
  22. [JsonProperty("serviceId")]
  23. public string serviceid { get; set; }
  24. [JsonProperty("fullName")]
  25. public string fullName { get; set; }
  26. [JsonProperty("sex")]
  27. public string sex { get; set; }
  28. [JsonProperty("address")]
  29. public string address { get; set; }
  30. [JsonProperty("provinceId")]
  31. public string provinceId { get; set; }
  32. [JsonProperty("cardNumber")]
  33. public string cardNumber { get; set; }
  34. [JsonProperty("email")]
  35. public string email { get; set; }
  36. [JsonProperty("company")]
  37. public string company { get; set; }
  38. [JsonProperty("description")]
  39. public string description { get; set; }
  40. [JsonProperty("picture")]
  41. public string picture { get; set; }
  42. [JsonProperty("sexNeed")]
  43. public string sexNeed { get; set; }
  44. [JsonProperty("birthday")]
  45. public string birthday { get; set; }
  46. [JsonProperty("height")]
  47. public string height { get; set; }
  48. [JsonProperty("weight")]
  49. public string weight { get; set; }
  50. [JsonProperty("work")]
  51. public string work { get; set; }
  52. [JsonProperty("isLike")]
  53. public string isLike { get; set; }
  54. [JsonProperty("totalLike")]
  55. public string totalLike { get; set; }
  56. [JsonProperty("totalPic")]
  57. public string totalPic { get; set; }
  58. [JsonProperty("totalView")]
  59. public string totalView { get; set; }
  60. [JsonProperty("lookingFor")]
  61. public string lookingFor { get; set; }
  62. [JsonProperty("listInterests")]
  63. public usersInterests[] listInterests { get; set; }
  64. [JsonProperty("listGift")]
  65. public usersGift[] listGift { get; set; }
  66. public override string ToString()
  67. {
  68. return JsonConvert.SerializeObject(this);
  69. }
  70. }
  71. }