Compare commits

...

1 Commits

Author SHA1 Message Date
Joshua_Gutenplan
d8e2f8cd51 feat: IVideoCodecUiExtensions 2024-04-25 10:03:38 -07:00
3 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
namespace PepperDash.Essentials.Devices.Common.VideoCodec.Interfaces
{
public interface IVideoCodecUiExtensionsHandler : IVideoCodecUiExtensionsWebViewDisplayAction, IVideoCodecUiExtensionsClickedEvent
{
}
public interface IVideoCodecUiExtensions
{
IVideoCodecUiExtensionsHandler VideoCodecUiExtensionsHandler { get; set; }
}
}

View File

@@ -0,0 +1,35 @@
using System;
namespace PepperDash.Essentials.Devices.Common.VideoCodec.Interfaces
{
public interface IVideoCodecUiExtensionsWebViewDisplayAction
{
Action<UiWebViewDisplayActionArgs> UiWebViewDisplayAction { get; set; }
}
public class UiWebViewDisplayActionArgs
{
/// <summary>
/// Required <0 - 2000> The URL of the web page.
/// </summary>
public string Url { get; set; }
/// <summary>
/// Fullscreen, Modal Full screen: Display the web page on the entire screen.Modal: Display the web page in a window.
/// </summary>
public string Mode { get; set; }
/// <summary>
/// <0 - 255> The title of the web page.
/// </summary>
public string Title { get; set; }
/// <summary>
/// <0 - 8192> An HTTP header field.You can add up 15 Header parameters in one command, each holding one HTTP header field.
/// </summary>
public string Header { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
using System;
namespace PepperDash.Essentials.Devices.Common.VideoCodec.Interfaces
{
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()
{
}
}
}