using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace SinochemCloudClient.Models { public class RefundResponse : ResponseBase { public Data result { get; set; } public class Data { 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(); } } } }