RefundResponse.cs 1022 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SinochemCloudClient.Models
  8. {
  9. public class RefundResponse : ResponseBase
  10. {
  11. public Data result { get; set; }
  12. public class Data
  13. {
  14. public string display_Msg { get; set; }
  15. public string online_Receipt { get; set; }
  16. public override string ToString()
  17. {
  18. PropertyInfo[] _PropertyInfos = this.GetType().GetProperties();
  19. var sb = new StringBuilder();
  20. sb.Append(Environment.NewLine + "{" + Environment.NewLine);
  21. foreach (var info in _PropertyInfos)
  22. {
  23. var value = info.GetValue(this, null) ?? "(null)";
  24. sb.AppendLine(info.Name + ": " + value.ToString());
  25. }
  26. sb.Append("}");
  27. return sb.ToString();
  28. }
  29. }
  30. }
  31. }