mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 20:47:04 +00:00
fix: add property for sync device association
This commit is contained in:
parent
2a70fc678e
commit
ddbcc13c50
1 changed files with 12 additions and 4 deletions
|
|
@ -1,12 +1,14 @@
|
||||||
using Newtonsoft.Json;
|
using System.Collections.Generic;
|
||||||
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
using PepperDash.Core;
|
using PepperDash.Core;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Core
|
namespace PepperDash.Essentials.Core
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// Defines the type of source list item, which can be a route, off, or other.
|
||||||
|
/// This is used to categorize the source list items in a room.
|
||||||
|
/// The type is serialized to JSON and can be used to determine how the item should be displayed or handled in the UI.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum eSourceListItemType
|
public enum eSourceListItemType
|
||||||
{
|
{
|
||||||
|
|
@ -166,6 +168,12 @@ namespace PepperDash.Essentials.Core
|
||||||
[JsonProperty("disableSimpleRouting")]
|
[JsonProperty("disableSimpleRouting")]
|
||||||
public bool DisableSimpleRouting { get; set; }
|
public bool DisableSimpleRouting { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The key of the device that provides video sync for this source item
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("syncProviderDeviceKey")]
|
||||||
|
public string SyncProviderDeviceKey { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Default constructor for SourceListItem, initializes the Icon to "Blank"
|
/// Default constructor for SourceListItem, initializes the Icon to "Blank"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -177,7 +185,7 @@ namespace PepperDash.Essentials.Core
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a string representation of the SourceListItem, including the SourceKey and Name
|
/// Returns a string representation of the SourceListItem, including the SourceKey and Name
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns> A string representation of the SourceListItem</returns>
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return $"{SourceKey}:{Name}";
|
return $"{SourceKey}:{Name}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue