public DeviceStateNotification(DeviceState playstate)
 {
     MuteActive = playstate.muteActive;
     VolumeMaster = playstate.volumeMaster;
     ShuffleActive = playstate.shuffleActive;
     RepeatActive = playstate.repeatActive;
 }
Example #2
0
 void Device_VolumeChanged(object sender, DeviceController.DeviceVolumeEventArgs e)
 {
     DeviceState _playState = new DeviceState();
     _playState.volumeMaster = e.Volume.ToString();
     SendMessageAll(new Protocol.DeviceStateNotification(_playState));
 }
Example #3
0
 void Device_MuteChanged(object sender, DeviceController.DeviceMuteEventArgs e)
 {
     DeviceState _playState = new DeviceState();
     _playState.muteActive = (e.MuteState == DeviceController.DeviceMuteEventArgs.MuteStates.Muted) ? "true" : "false";
     SendMessageAll(new Protocol.DeviceStateNotification(_playState));
 }