using MeterVision.model;
using MeterVision.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MeterVision.db
{
    //站点表实体对象
    public class TStation
    {
        public string Id { get; set; }
        public string StationId { get; set; }
        public string StationName { get; set; }
        public string DeviceSn { get; set; }
        public string StandId { get; set; }
        public int MeterType { get; set; }
        public double BrightVal { get; set; }
        public int FlowRate { get; set; }
        public string DialRegion { get; set; }
        public int NumCount { get; set; }
        public int IndCount { get; set; }
        public string FeatureRegion { get; set; }
        public double LastUnit { get; set; }
        public double LastValue { get; set; }
        public string LastTime { get; set; }

        public string CreateTime { get; set; }

        //标注次数(来自v_station的查询)
        public int MarkCount { get; set; }

        // 无参构造函数，初始化属性为空值
        public TStation()
        {
            StationId = string.Empty;
            StationName = string.Empty;
            DeviceSn = string.Empty;
            MeterType = 0;
            BrightVal = 1.2;
            FlowRate = 0;
            DialRegion = string.Empty;
            NumCount = 0;
            IndCount = 0;
            FeatureRegion = string.Empty;
            LastUnit = 0.0;
            LastValue = 0.0;
            LastTime = string.Empty;
            CreateTime = string.Empty;
            StandId = string.Empty;
        }

        public TStation(StationItem item)
        {
            ObjectHelper.CopyMatchingFields(item, this);
        }

    }
}
