62 lines
1.7 KiB
C#
62 lines
1.7 KiB
C#
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
|
||
//}
|
||
}
|