12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Reflection;
- using System.Text;
- using System.Threading.Tasks;
- namespace SinochemCloudClient.Models
- {
- public class TrxStatusInquiryResponse : ResponseBase
- {
- public const string StatusUnknown = "55";
- public bool IsStatusUnknown()
- {
- return StatusUnknown == code;
- }
- public Data result { get; set; }
- public class Data
- {
- public double amount { get; set; }
- public double real_Pay_Amount { get; set; }
- public string display_Msg { get; set; }
- public string online_Receipt { get; set; }
- public override string ToString()
- {
- PropertyInfo[] _PropertyInfos = this.GetType().GetProperties();
- var sb = new StringBuilder();
- sb.Append(Environment.NewLine + "{" + Environment.NewLine);
- foreach (var info in _PropertyInfos)
- {
- var value = info.GetValue(this, null) ?? "(null)";
- sb.AppendLine(info.Name + ": " + value.ToString());
- }
- sb.Append("}");
- return sb.ToString();
- }
- }
- }
- }
|