mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-31 21:34:58 +00:00
In order to support the way some Smart Objects work, a clear directory join was needed in order to allow for clearing a selection in certain circumstances. In order to support finer-grained dependencies while developing plugins, the Development Device Factory was added.
64 lines
2.6 KiB
C#
64 lines
2.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
|
|
using PepperDash.Essentials.Core;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
|
{
|
|
/// <summary>
|
|
/// Defines the required elements for layout control
|
|
/// </summary>
|
|
public interface IHasCodecLayouts
|
|
{
|
|
StringFeedback LocalLayoutFeedback { get; }
|
|
|
|
void LocalLayoutToggle();
|
|
void LocalLayoutToggleSingleProminent();
|
|
void MinMaxLayoutToggle();
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Defines the requirements for Zoom Room layout control
|
|
/// </summary>
|
|
public interface IHasZoomRoomLayouts : IHasCodecLayouts
|
|
{
|
|
event EventHandler<LayoutInfoChangedEventArgs> LayoutInfoChanged;
|
|
|
|
BoolFeedback LayoutViewIsOnFirstPageFeedback { get; } // TODO: #697 [*] Consider modifying to report button visibility in func
|
|
BoolFeedback LayoutViewIsOnLastPageFeedback { get; } // TODO: #697 [*] Consider modifying to report button visibility in func
|
|
BoolFeedback CanSwapContentWithThumbnailFeedback { get; }
|
|
BoolFeedback ContentSwappedWithThumbnailFeedback { get; }
|
|
|
|
ZoomRoom.zConfiguration.eLayoutStyle LastSelectedLayout { get; }
|
|
ZoomRoom.zConfiguration.eLayoutStyle AvailableLayouts { get; }
|
|
|
|
void GetAvailableLayouts(); // Mot sure this is necessary if we're already subscribed to zStatus Call Layout
|
|
void SetLayout(ZoomRoom.zConfiguration.eLayoutStyle layoutStyle);
|
|
void SwapContentWithThumbnail();
|
|
|
|
void LayoutTurnNextPage();
|
|
void LayoutTurnPreviousPage();
|
|
}
|
|
|
|
public class LayoutInfoChangedEventArgs : EventArgs
|
|
{
|
|
[JsonProperty("availableLayouts", NullValueHandling = NullValueHandling.Ignore)]
|
|
public ZoomRoom.zConfiguration.eLayoutStyle AvailableLayouts { get; set; }
|
|
[JsonProperty("currentSelectedLayout", NullValueHandling = NullValueHandling.Ignore)]
|
|
public ZoomRoom.zConfiguration.eLayoutStyle CurrentSelectedLayout { get; set; }
|
|
[JsonProperty("canSwapContentWithThumbnail", NullValueHandling = NullValueHandling.Ignore)]
|
|
public bool CanSwapContentWithThumbnail { get; set; }
|
|
[JsonProperty("contentSwappedWithThumbnail", NullValueHandling = NullValueHandling.Ignore)]
|
|
public bool ContentSwappedWithThumbnail { get; set; }
|
|
[JsonProperty("layoutViewIsOnFirstPage", NullValueHandling = NullValueHandling.Ignore)]
|
|
public bool LayoutViewIsOnFirstPage { get; set; }
|
|
[JsonProperty("layoutViewIsOnLastPage", NullValueHandling = NullValueHandling.Ignore)]
|
|
public bool LayoutViewIsOnLastPage { get; set; }
|
|
}
|
|
} |