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 { /// /// 集中器上下线、心跳记录 /// public class FocusRecord : AggregateRoot { 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; } /// /// 集中器编号 /// public string Address { get; set; } /// /// 采集主站 /// public string GatherServerId { get; set; } /// /// 间隔时间 (DateTime.Now.Minute - LogTime.Minute) /// public int IntervalTime { get; set; } /// /// 离/在线发生时间 /// public DateTime LogTime { get; set; } /// /// 终端心跳;SignIn 终端登录;SignOut 终端登出 /// public string LogType { get; set; } public string Remark { get; set; } } //public enum LogType //{ // [Description("终端心跳")] // HeartBeat, // [Description("终端登录")] // SignIn, // [Description("终端登出")] // SignOut //} }