public override bool Equals(object obj) { if (obj == null) { return(false); } StateDeviceEN t = obj as StateDeviceEN; if (t == null) { return(false); } if (Id.Equals(t.Id)) { return(true); } else { return(false); } }
public StateDeviceEN(StateDeviceEN stateDevice) { this.init(Id, stateDevice.Name, stateDevice.Value, stateDevice.StateTelemetry); }