namespace Entity.Api.Resp; public class EmeterResp { /// /// 充电机电表编码 (充电机Sn) /// public string? Code { get; set; } /// /// 电表当前读数 /// public float? Value { get; set; } public DateTime? UploadTime { get; set; } private string? _hour; /// /// 小时时间 /// public string? Hour { get { return _hour; } set { if (!string.IsNullOrEmpty(value)) { _hour = DateTime.Parse(value).ToString("HH:mm:ss"); } else { _hour = value; } } } /// ///分钟时间 /// private string? _minute; public string? Minute { get { return _minute; } set { if (!string.IsNullOrEmpty(value)) { _minute = DateTime.Parse(value).ToString("HH:mm:ss"); } else { _minute = value; } } } /// /// 0直流 1交流 /// public int? Type { get; set; } }