Response.cs 708 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace CommonObj.model
  6. {
  7. public class Response
  8. {
  9. [JsonProperty("responseCode")]
  10. public string responseCode { get; set; }
  11. [JsonProperty("responseMessage")]
  12. public string responseMessage { get; set; }
  13. public override string ToString()
  14. {
  15. return JsonConvert.SerializeObject(this);
  16. }
  17. public Response()
  18. {
  19. }
  20. public Response(string _responseCode, string _responseMessage)
  21. {
  22. this.responseCode = _responseCode;
  23. this.responseMessage = _responseMessage;
  24. }
  25. }
  26. }