2025-04-17 20:28:50 +08:00

62 lines
1.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
namespace JiShe.CollectBus.IotSystems.Records
{
/// <summary>
/// 集中器上下线、心跳记录
/// </summary>
public class FocusRecord : AggregateRoot<Guid>
{
public FocusRecord(string address,string gatherServerId,int intervalTime,DateTime logTime,
string logType,string remark)
{
Address = address;
GatherServerId = gatherServerId;
IntervalTime = intervalTime;
LogTime = logTime;
LogType = logType;
Remark = remark;
}
/// <summary>
/// 集中器编号
/// </summary>
public string Address { get; set; }
/// <summary>
/// 采集主站
/// </summary>
public string GatherServerId { get; set; }
/// <summary>
/// 间隔时间 DateTime.Now.Minute - LogTime.Minute
/// </summary>
public int IntervalTime { get; set; }
/// <summary>
/// 离/在线发生时间
/// </summary>
public DateTime LogTime { get; set; }
/// <summary>
/// 终端心跳SignIn 终端登录SignOut 终端登出
/// </summary>
public string LogType { get; set; }
public string Remark { get; set; }
}
//public enum LogType
//{
// [Description("终端心跳")]
// HeartBeat,
// [Description("终端登录")]
// SignIn,
// [Description("终端登出")]
// SignOut
//}
}