diff --git a/Essentials/PepperDashEssentials/Room/Cotija/CotijaRoomBridge.cs b/Essentials/PepperDashEssentials/Room/Cotija/CotijaRoomBridge.cs index 9e8e69fc..b725c2d5 100644 --- a/Essentials/PepperDashEssentials/Room/Cotija/CotijaRoomBridge.cs +++ b/Essentials/PepperDashEssentials/Room/Cotija/CotijaRoomBridge.cs @@ -31,12 +31,14 @@ namespace PepperDash.Essentials Parent.AddAction(string.Format(@"/room/{0}/source", Room.Key), new Action(c => room.RunRouteAction(c.SourceListItem))); Parent.AddAction(string.Format(@"/room/{0}/defaultsource", Room.Key), new Action(Room.RunDefaultRoute)); - //Parent.AddAction(string.Format(@"/room/{0}/event/masterVolumeUpBtn", Room.Key), new PressAndHoldAction(b => room.CurrentVolumeControls.VolumeUp(b))); - //Parent.AddAction(string.Format(@"/room/{0}/event/masterVolumeDownBtn", Room.Key), new PressAndHoldAction(b => room.CurrentVolumeControls.VolumeDown(b))); Parent.AddAction(string.Format(@"/room/{0}/masterVolumeLevel", Room.Key), new Action(u => (room.CurrentVolumeControls as IBasicVolumeWithFeedback).SetVolume(u))); Parent.AddAction(string.Format(@"/room/{0}/masterVolumeMuteToggle", Room.Key), new Action(() => room.CurrentVolumeControls.MuteToggle())); + Parent.AddAction(string.Format(@"/room/{0}/shutdownStart", Room.Key), new Action(() => room.StartShutdown(eShutdownType.Manual))); + Parent.AddAction(string.Format(@"/room/{0}/shutdownEnd", Room.Key), new Action(() => room.ShutdownPromptTimer.Finish())); + Parent.AddAction(string.Format(@"/room/{0}/shutdownCancel", Room.Key), new Action(() => room.ShutdownPromptTimer.Cancel())); + Room.CurrentSingleSourceChange += new SourceInfoChangeHandler(Room_CurrentSingleSourceChange); Room.CurrentVolumeDeviceChange += new EventHandler(Room_CurrentVolumeDeviceChange); @@ -65,6 +67,11 @@ namespace PepperDash.Essentials } + /// + /// Handler for cancelled shutdown + /// + /// + /// void ShutdownPromptTimer_WasCancelled(object sender, EventArgs e) { JObject roomStatus = new JObject(); @@ -75,6 +82,11 @@ namespace PepperDash.Essentials Parent.PostToServer(Room, message); } + /// + /// Handler for when shutdown finishes + /// + /// + /// void ShutdownPromptTimer_HasFinished(object sender, EventArgs e) { JObject roomStatus = new JObject(); @@ -85,6 +97,11 @@ namespace PepperDash.Essentials Parent.PostToServer(Room, message); } + /// + /// Handler for when shutdown starts + /// + /// + /// void ShutdownPromptTimer_HasStarted(object sender, EventArgs e) { JObject roomStatus = new JObject(); diff --git a/Release Package/PepperDashEssentials.cpz b/Release Package/PepperDashEssentials.cpz index bc647610..d590b67c 100644 Binary files a/Release Package/PepperDashEssentials.cpz and b/Release Package/PepperDashEssentials.cpz differ diff --git a/Release Package/PepperDashEssentials.dll b/Release Package/PepperDashEssentials.dll index 9a9a3420..df93e061 100644 Binary files a/Release Package/PepperDashEssentials.dll and b/Release Package/PepperDashEssentials.dll differ