12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Reflection;
- using System.Text;
- using System.Threading.Tasks;
- namespace SinochemCloudClient.Models
- {
- public abstract class RequestBase
- {
- public string tid { get; set; }
- public string datetime { get; set; }
- public string gun { get; set; }
- public string token { get; set; }
- public string mobile { get; set; }
- public string dept_No { get; set; }
- public string card_No { 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();
- }
- }
- }
|