newsObjGetRequest.cs 900 B

12345678910111213141516171819202122232425262728293031323334353637
  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. // {"title":"xxxx","serviceId":"30","content":"cong hoa xa hoi chu nghia","dateSend":"01/12/2020 01:01:10"}
  10. public class newsObjGetRequest
  11. {
  12. [JsonProperty("id")]
  13. public string id { get; set; }
  14. [JsonProperty("serviceId")]
  15. public string serviceid { get; set; }
  16. [JsonProperty("status")]
  17. public string status { get; set; }
  18. [JsonProperty("date")]
  19. public string date { get; set; }
  20. [JsonProperty("top")]
  21. public string top { get; set; }
  22. [JsonProperty("isGetContent")]
  23. public string isGetContent { get; set; }
  24. public override string ToString()
  25. {
  26. return JsonConvert.SerializeObject(this);
  27. }
  28. }
  29. }