mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
feat: IVideoCodecUiExtensions
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
namespace PepperDash.Essentials.Devices.Common.VideoCodec.Interfaces
|
||||||
|
{
|
||||||
|
public interface IVideoCodecUiExtensionsHandler : IVideoCodecUiExtensionsWebViewDisplayAction, IVideoCodecUiExtensionsClickedEvent
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface IVideoCodecUiExtensions
|
||||||
|
{
|
||||||
|
IVideoCodecUiExtensionsHandler VideoCodecUiExtensionsHandler { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user