Contains the state of a device enlisting all it's component's states.
コード例 #1
0
 /// <summary>
 /// A new device state is ready to be published, announce it
 /// </summary>
 /// <param name="deviceState"></param>
 internal void AnnounceDeviceState(DeviceState deviceState)
 {
     deviceNetworkHost.DeviceStateReceived(deviceState);
 }
コード例 #2
0
 internal void DeviceStateReceived(DeviceState deviceState)
 {
     OnDeviceStateReceived?.Invoke(this, new DeviceStateEventArgs(deviceState));
 }
コード例 #3
0
 public DeviceStateEventArgs(DeviceState deviceState)
 {
     DeviceState = deviceState;
 }
コード例 #4
0
 public void GenerateDeviceState(DeviceState state)
 {
     DeviceStateReceived?.Invoke(this, state);
 }