newsWebObj.cs 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 newsWebObj
  10. {
  11. [JsonProperty("id")]
  12. public string id { get; set; }
  13. [JsonProperty("title")]
  14. public string title { get; set; }
  15. [JsonProperty("serviceId")]
  16. public string serviceid { get; set; }
  17. [JsonProperty("content")]
  18. public string content { get; set; }
  19. [JsonProperty("description")]
  20. public string description { get; set; }
  21. [JsonProperty("urlPicture")]
  22. public string urlPicture { get; set; }
  23. [JsonProperty("status")]
  24. public string status { get; set; }
  25. [JsonProperty("sysdate")]
  26. public string sysdate { get; set; }
  27. public override string ToString()
  28. {
  29. return JsonConvert.SerializeObject(this);
  30. }
  31. }
  32. }