Esempio n. 1
0
 public UpdateEndpointCommand(
     string serialNumber,
     EEndpointState switchState)
 {
     SerialNumber = serialNumber;
     SwitchState  = switchState;
 }
Esempio n. 2
0
 public Endpoint(
     string serialNumber,
     int meterModelId,
     int meterNumber,
     string meterFirmwareVersion,
     EEndpointState switchState)
 {
     SerialNumber         = serialNumber;
     MeterModelId         = meterModelId;
     MeterNumber          = meterNumber;
     MeterFirmwareVersion = meterFirmwareVersion;
     SwitchState          = switchState;
 }
Esempio n. 3
0
 public void Arm()
 {
     SwitchState = EEndpointState.Armed;
 }
Esempio n. 4
0
 public void Connect()
 {
     SwitchState = EEndpointState.Connected;
 }
Esempio n. 5
0
 public void Disconnect()
 {
     SwitchState = EEndpointState.Disconnected;
 }
Esempio n. 6
0
 public void Update(EEndpointState switchState)
 {
     SwitchState = switchState;
 }