BalanceInquiryResponse.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 BalanceInquiryResponse : ResponseBase
  10. {
  11. public Data result { get; set; }
  12. public class Data
  13. {
  14. public double amount { get; set; }
  15. public string user_Name { get; set; }
  16. public string car_Number { get; set; }
  17. public string gun { get; set; }
  18. public string display_Msg { get; set; }
  19. public string token { get; set; }
  20. public string ttc { get; set; }
  21. public override string ToString()
  22. {
  23. PropertyInfo[] _PropertyInfos = this.GetType().GetProperties();
  24. var sb = new StringBuilder();
  25. sb.Append(Environment.NewLine+ "{" + Environment.NewLine);
  26. foreach (var info in _PropertyInfos)
  27. {
  28. var value = info.GetValue(this, null) ?? "(null)";
  29. sb.AppendLine(info.Name + ": " + value.ToString());
  30. }
  31. sb.Append("}");
  32. return sb.ToString();
  33. }
  34. }
  35. }
  36. }