usersChatDetail.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 usersChatDetail
  10. {
  11. [JsonProperty("seq")]
  12. public string seq { get; set; }
  13. [JsonProperty("id")]
  14. public string id { get; set; }
  15. [JsonProperty("chatId")]
  16. public string chatId { get; set; }
  17. [JsonProperty("message")]
  18. public string message { get; set; }
  19. [JsonProperty("isCheck")]
  20. public string isCheck { get; set; }
  21. [JsonProperty("createdDate")]
  22. public string createdDate { get; set; }
  23. [JsonProperty("userIdSend")]
  24. public string userIdSend { get; set; }
  25. [JsonProperty("fullNamSend")]
  26. public string fullNamSend { get; set; }
  27. [JsonProperty("userIdReceived")]
  28. public string userIdReceived { get; set; }
  29. [JsonProperty("fullNamReceived")]
  30. public string fullNamReceived { get; set; }
  31. public override string ToString()
  32. {
  33. return JsonConvert.SerializeObject(this);
  34. }
  35. }
  36. public class usersChatDetailList
  37. {
  38. [JsonProperty("status")]
  39. public string status { get; set; }
  40. [JsonProperty("message")]
  41. public string message { get; set; }
  42. [JsonProperty("rowsOnPage")]
  43. public string rowsOnPage { get; set; }
  44. [JsonProperty("seqPage")]
  45. public string seqPage { get; set; }
  46. [JsonProperty("totalPage")]
  47. public string totalPage { get; set; }
  48. [JsonProperty("listUsersChatDetail")]
  49. public usersChatDetail[] listUsersChatDetail { get; set; }
  50. public override string ToString()
  51. {
  52. return JsonConvert.SerializeObject(this);
  53. }
  54. }
  55. }