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