usersMsgObj.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 usersMsgObj
  10. {
  11. [JsonProperty("id")]
  12. public string id { get; set; }
  13. [JsonProperty("usersFrom")]
  14. public string usersFrom { get; set; }
  15. [JsonProperty("userFromId")]
  16. public string userFromId { get; set; }
  17. [JsonProperty("usersFromName")]
  18. public string usersFromName { get; set; }
  19. [JsonProperty("usersTo")]
  20. public string usersTo { get; set; }
  21. [JsonProperty("usersToId")]
  22. public string usersToId { get; set; }
  23. [JsonProperty("usersToName")]
  24. public string usersToName { get; set; }
  25. [JsonProperty("serviceId")]
  26. public string serviceId { get; set; }
  27. [JsonProperty("message")]
  28. public string message { get; set; }
  29. [JsonProperty("dateSend")]
  30. public string dateSend { get; set; }
  31. [JsonProperty("isCheck")]
  32. public string isCheck { get; set; }
  33. public override string ToString()
  34. {
  35. return JsonConvert.SerializeObject(this);
  36. }
  37. }
  38. }