diff --git a/Essentials/PepperDashEssentials/Properties/AssemblyInfo.cs b/Essentials/PepperDashEssentials/Properties/AssemblyInfo.cs index fa43e857..4ba8adb9 100644 --- a/Essentials/PepperDashEssentials/Properties/AssemblyInfo.cs +++ b/Essentials/PepperDashEssentials/Properties/AssemblyInfo.cs @@ -4,5 +4,5 @@ [assembly: AssemblyCompany("PepperDash Technology Corp")] [assembly: AssemblyProduct("PepperDashEssentials")] [assembly: AssemblyCopyright("Copyright © PepperDash Technology Corp 2017")] -[assembly: AssemblyVersion("1.0.7.*")] +[assembly: AssemblyVersion("1.0.8.*")] diff --git a/Essentials/PepperDashEssentials/Room/Cotija/CotijaRoomBridge.cs b/Essentials/PepperDashEssentials/Room/Cotija/CotijaRoomBridge.cs index ed911a3b..00c72b87 100644 --- a/Essentials/PepperDashEssentials/Room/Cotija/CotijaRoomBridge.cs +++ b/Essentials/PepperDashEssentials/Room/Cotija/CotijaRoomBridge.cs @@ -21,9 +21,16 @@ namespace PepperDash.Essentials Parent = parent; Room = room; + // we add actions to the messaging system with a path, and a related action. Custom action + // content objects can be handled in the controller's LineReceived method - and perhaps other + // sub-controller parsing could be attached to these classes, so that the systemController + // doesn't need to know about everything. + // Source Changes and room off Parent.AddAction(string.Format(@"/room/{0}/status",Room.Key), new Action(() => Room_RoomFullStatus(Room))); - Parent.AddAction(string.Format(@"/room/{0}/source", Room.Key), new Action(c => room.RunRouteAction(c.SourceSelect))); + 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}/event/muteToggle", Room.Key), new Action(() => room.CurrentVolumeControls.MuteToggle())); @@ -247,8 +254,9 @@ namespace PepperDash.Essentials public class SourceSelectMessageContent { - public string Destination { get; set; } - public string SourceSelect { get; set; } + public string SourceListItem { get; set; } + //public string Destination { get; set; } + //public string SourceSelect { get; set; } } public delegate void PressAndHoldAction(bool b); diff --git a/Essentials/PepperDashEssentials/Room/Cotija/CotijaSystemController.cs b/Essentials/PepperDashEssentials/Room/Cotija/CotijaSystemController.cs index 857c8e7c..d4a04ddb 100644 --- a/Essentials/PepperDashEssentials/Room/Cotija/CotijaSystemController.cs +++ b/Essentials/PepperDashEssentials/Room/Cotija/CotijaSystemController.cs @@ -359,7 +359,7 @@ namespace PepperDash.Essentials CommunicationGather LineGathered = new CommunicationGather(SseClient, "\x0d\x0a"); - LineGathered.LineReceived += new EventHandler(LineGathered_LineReceived); + LineGathered.LineReceived += new EventHandler(SSEClient_LineReceived); } else { @@ -381,7 +381,7 @@ namespace PepperDash.Essentials /// /// /// - void LineGathered_LineReceived(object sender, GenericCommMethodReceiveTextArgs e) + void SSEClient_LineReceived(object sender, GenericCommMethodReceiveTextArgs e) { //Debug.Console(1, this, "Received from Server: '{0}'", e.Text); @@ -493,6 +493,10 @@ namespace PepperDash.Essentials .ToObject()); } } + else + { + Debug.Console(1, this, "-- Warning: Incoming message has no registered handler"); + } } diff --git a/Release Package/PepperDashEssentials.cpz b/Release Package/PepperDashEssentials.cpz index 729f6e4a..32802ae1 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 8006761b..8ecdb150 100644 Binary files a/Release Package/PepperDashEssentials.dll and b/Release Package/PepperDashEssentials.dll differ