newsWebObjGetResponse.cs 581 B

1234567891011121314151617181920212223242526272829
  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 newsWebObjGetResponse
  10. {
  11. [JsonProperty("status")]
  12. public string status { get; set; }
  13. [JsonProperty("message")]
  14. public string message { get; set; }
  15. [JsonProperty("listNewsWeb")]
  16. public newsWebObj[] listNewsWeb { get; set; }
  17. public override string ToString()
  18. {
  19. return JsonConvert.SerializeObject(this);
  20. }
  21. }
  22. }