using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Sinochem_InternetPlus_Display.Models { public class CarPlateTrxRequest { public string car_Number { get; set; } public string card_No { get; set; } public string ttc { get; set; } public decimal amount { get; set; } public string gun { get; set; } public string display_Msg { get; set; } public string token { get; set; } public override string ToString() { PropertyInfo[] _PropertyInfos = this.GetType().GetProperties(); var sb = new StringBuilder(); foreach (var info in _PropertyInfos) { var value = info.GetValue(this, null) ?? "(null)"; sb.AppendLine(info.Name + ": " + value.ToString()); } return sb.ToString(); } } }