You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.2 KiB

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