using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace IntelligentControlForsx.Model { public class PointMapModel { //对象类型 public PointType ThingType { get; set; } //对象ID public string ThingId { get; set; } //测点数据类型, AI or DI public PointDataType DataType { get; set; } //统一编码 public string UniformCode { get; set; } //测点命称 public string PointName { get; set; } //测点ID public string PointId { get; set; } //测点的值(上次更新时) public double Value { get; set; } public override bool Equals(object obj) { PointMapModel pmm = obj as PointMapModel; if (pmm != null && pmm.ThingId == this.ThingId && pmm.ThingType == this.ThingType && pmm.UniformCode == this.UniformCode) { return true; } return false; } } }