newsSmsObjUpdateRequest.cs 903 B

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