using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace SinochemCloudClient.Models
{
    public class BalanceInquiryResponse : ResponseBase
    {
        public Data result { get; set; }

        public class Data
        {
            public double amount { get; set; }
            public string user_Name { get; set; }
            public string car_Number { get; set; }
            public string gun { get; set; }
            public string display_Msg { get; set; }
            public string token { get; set; }
            public string ttc { 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();
            }
        }
    }
}