usersPic.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 usersPic
  10. {
  11. [JsonProperty("id")]
  12. public string id { get; set; }
  13. [JsonProperty("usersId")]
  14. public string usersId { get; set; }
  15. [JsonProperty("url")]
  16. public string url { get; set; }
  17. [JsonProperty("createdDate")]
  18. public string createdDate { get; set; }
  19. [JsonProperty("note")]
  20. public string note { get; set; }
  21. public override string ToString()
  22. {
  23. return JsonConvert.SerializeObject(this);
  24. }
  25. }
  26. public class usersPicList
  27. {
  28. [JsonProperty("status")]
  29. public string status { get; set; }
  30. [JsonProperty("message")]
  31. public string message { get; set; }
  32. [JsonProperty("listPic")]
  33. public usersPic[] listPic { get; set; }
  34. public override string ToString()
  35. {
  36. return JsonConvert.SerializeObject(this);
  37. }
  38. }
  39. }