generated from PepperDash/EssentialsPluginTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9a877c
commit 0eed1d1
Showing
13 changed files
with
272 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...erInterface/CiscoCodecUserInterface/MobileControl/IMcCiscoCodecUserInterfaceAppControl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using PepperDash.Core; | ||
using PepperDash.Essentials.Core; | ||
|
||
namespace PepperDash.Essentials.Touchpanel | ||
{ | ||
public interface IMcCiscoCodecUserInterfaceAppControl : IKeyed | ||
{ | ||
//BoolFeedback WebViewOpenFeedback { get; } | ||
|
||
void CloseWebViewController(); | ||
void CloseWebViewOsd(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...erface/CiscoCodecUserInterface/MobileControl/McVideoCodecUserInterfaceControlMessenger.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Linq; | ||
using PepperDash.Core; | ||
using PepperDash.Essentials.AppServer.Messengers; | ||
using PepperDash.Essentials.Core.DeviceTypeInterfaces; | ||
|
||
namespace PepperDash.Essentials.Touchpanel | ||
{ | ||
public class McVideoCodecUserInterfaceControlMessenger : MessengerBase | ||
{ | ||
private readonly IMcCiscoCodecUserInterfaceAppControl _appControl; | ||
|
||
public McVideoCodecUserInterfaceControlMessenger(string key, string messagePath, Device device) : base(key, messagePath, device) | ||
{ | ||
_appControl = device as IMcCiscoCodecUserInterfaceAppControl; | ||
} | ||
|
||
protected override void RegisterActions() | ||
{ | ||
if (_appControl == null) | ||
{ | ||
Debug.Console(0, this, $"{_device.Key} does not implement ITswAppControl"); | ||
return; | ||
} | ||
|
||
// AddAction($"/fullStatus", (id, context) => SendFullStatus()); | ||
|
||
AddAction($"/closeWebViewController", (id, context) => _appControl.CloseWebViewController()); | ||
|
||
//_appControl.WebViewOpenFeedback.OutputChange += (s, a) => | ||
//{ | ||
// PostStatusMessage(JToken.FromObject(new | ||
// { | ||
// appOpen = a.BoolValue | ||
// })); | ||
//}; | ||
} | ||
|
||
//private void SendFullStatus() | ||
//{ | ||
// var message = new TswAppStateMessage | ||
// { | ||
// AppOpen = _appControl.AppOpenFeedback.BoolValue, | ||
// }; | ||
|
||
// PostStatusMessage(message); | ||
//} | ||
} | ||
|
||
//public class VideoCodecUserInterfaceAppStateMessage : DeviceStateMessageBase | ||
//{ | ||
// [JsonProperty("appOpen", NullValueHandling = NullValueHandling.Ignore)] | ||
// public bool? AppOpen { get; set; } | ||
//} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/UserInterface/UserInterfaceExtensions/IVideoCodecUiExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using epi_videoCodec_ciscoExtended.UserInterface.UserInterfaceWebViewDisplay; | ||
using PepperDash.Essentials.Devices.Common.VideoCodec.Interfaces; | ||
|
||
namespace epi_videoCodec_ciscoExtended.UserInterface.UserInterfaceExtensions | ||
{ | ||
public interface IVideoCodecUiExtensionsHandler : IVideoCodecUiExtensionsWebViewDisplayActions, IVideoCodecUiExtensionsClickedEvent | ||
{ | ||
} | ||
|
||
public interface IVideoCodecUiExtensions | ||
{ | ||
IVideoCodecUiExtensionsHandler VideoCodecUiExtensionsHandler { get; set; } | ||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
src/UserInterface/UserInterfaceExtensions/IVideoCodecUiExtensionsClickedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
|
||
namespace epi_videoCodec_ciscoExtended.UserInterface.UserInterfaceExtensions | ||
{ | ||
public interface IVideoCodecUiExtensionsClickedEvent | ||
{ | ||
event EventHandler<UiExtensionsClickedEventArgs> UiExtensionsClickedEvent; | ||
} | ||
|
||
public class UiExtensionsClickedEventArgs : EventArgs | ||
{ | ||
public bool Clicked { get; set; } | ||
public string Id { get; set; } | ||
|
||
public UiExtensionsClickedEventArgs(bool clicked, string id) | ||
{ | ||
Clicked = clicked; | ||
Id = id; | ||
} | ||
|
||
public UiExtensionsClickedEventArgs() | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.