newsSmsObj.cs 867 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 newsSmsObj
  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("dateSend")]
  20. public string dateSend { get; set; }
  21. [JsonProperty("status")]
  22. public string status { get; set; }
  23. [JsonProperty("sysdate")]
  24. public string sysdate { get; set; }
  25. public override string ToString()
  26. {
  27. return JsonConvert.SerializeObject(this);
  28. }
  29. }
  30. }