using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace JiShe.CollectBus.IotSystems.Records
{
    /// <summary>
    /// 集中器在线记录
    /// </summary>
    public class ConrOnlineRecord : AggregateRoot<Guid>
    {
        public ConrOnlineRecord(string areaCode,string address,bool state,DateTime lastTime)
        {
            AreaCode = areaCode;
            Address = address;
            State = state;
            LastTime = lastTime;
        }

        /// <summary>
        /// 区域编号
        /// </summary>
        public string AreaCode { get; set; }

        /// <summary>
        /// 区域地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 是否在线
        /// </summary>
        public bool State { get; set; }

        /// <summary>
        /// 在/离线时间
        /// </summary>
        public DateTime LastTime { get; set; }
    }
}
