CarPlateTrxRequest.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 SinochemCarplateService.Models
  8. {
  9. public class CarPlateTrxRequest : EventArgs
  10. {
  11. public string car_Number { get; set; }
  12. public string card_No { get; set; }
  13. public string ttc { get; set; }
  14. public double amount { get; set; }
  15. public string gun { get; set; }
  16. public string display_Msg { get; set; }
  17. public string token { get; set; }
  18. public string tid { get; set; }
  19. public string oilCode { get; set; }
  20. public string oilName { get; set; }
  21. public override string ToString()
  22. {
  23. PropertyInfo[] _PropertyInfos = this.GetType().GetProperties();
  24. var sb = new StringBuilder();
  25. foreach (var info in _PropertyInfos)
  26. {
  27. var value = info.GetValue(this, null) ?? "(null)";
  28. sb.AppendLine(info.Name + ": " + value.ToString());
  29. }
  30. return sb.ToString();
  31. }
  32. }
  33. }