newsSmsObjRequest.cs 825 B

1234567891011121314151617181920212223242526272829303132
  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 newsSmsObjRequest
  11. {
  12. [JsonProperty("title")]
  13. public string title { get; set; }
  14. [JsonProperty("serviceId")]
  15. public string serviceid { get; set; }
  16. [JsonProperty("content")]
  17. public string content { get; set; }
  18. [JsonProperty("dateSend")]
  19. public string dateSend { get; set; }
  20. [JsonProperty("top")]
  21. public string top { get; set; }
  22. public override string ToString()
  23. {
  24. return JsonConvert.SerializeObject(this);
  25. }
  26. }
  27. }