mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 13:15:03 +00:00
docs: XML comments for DestinationListItem
This commit is contained in:
@@ -5,19 +5,34 @@ using PepperDash.Essentials.Core;
|
|||||||
|
|
||||||
namespace PepperDash.Essentials.Core
|
namespace PepperDash.Essentials.Core
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Represents a destination item in a routing system that can receive audio/video signals.
|
||||||
|
/// Contains information about the destination device, its properties, and location settings.
|
||||||
|
/// </summary>
|
||||||
public class DestinationListItem
|
public class DestinationListItem
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the key identifier for the sink device that this destination represents.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("sinkKey")]
|
[JsonProperty("sinkKey")]
|
||||||
public string SinkKey { get; set; }
|
public string SinkKey { get; set; }
|
||||||
|
|
||||||
private EssentialsDevice _sinkDevice;
|
private EssentialsDevice _sinkDevice;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the actual device instance for this destination.
|
||||||
|
/// Lazily loads the device from the DeviceManager using the SinkKey.
|
||||||
|
/// </summary>
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public EssentialsDevice SinkDevice
|
public EssentialsDevice SinkDevice
|
||||||
{
|
{
|
||||||
get { return _sinkDevice ?? (_sinkDevice = DeviceManager.GetDeviceForKey(SinkKey) as EssentialsDevice); }
|
get { return _sinkDevice ?? (_sinkDevice = DeviceManager.GetDeviceForKey(SinkKey) as EssentialsDevice); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the preferred display name for this destination.
|
||||||
|
/// Returns the custom Name if set, otherwise returns the SinkDevice name, or "---" if no device is found.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("preferredName")]
|
[JsonProperty("preferredName")]
|
||||||
public string PreferredName
|
public string PreferredName
|
||||||
{
|
{
|
||||||
@@ -32,30 +47,62 @@ namespace PepperDash.Essentials.Core
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the custom name for this destination.
|
||||||
|
/// If set, this name will be used as the PreferredName instead of the device name.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("name")]
|
[JsonProperty("name")]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets a value indicating whether this destination should be included in destination lists.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("includeInDestinationList")]
|
[JsonProperty("includeInDestinationList")]
|
||||||
public bool IncludeInDestinationList { get; set; }
|
public bool IncludeInDestinationList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the display order for this destination in lists.
|
||||||
|
/// Lower values appear first in sorted lists.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("order")]
|
[JsonProperty("order")]
|
||||||
public int Order { get; set; }
|
public int Order { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the surface location identifier for this destination.
|
||||||
|
/// Used to specify which surface or screen this destination is located on.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("surfaceLocation")]
|
[JsonProperty("surfaceLocation")]
|
||||||
public int SurfaceLocation { get; set; }
|
public int SurfaceLocation { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the vertical location position for this destination.
|
||||||
|
/// Used for spatial positioning in multi-display configurations.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("verticalLocation")]
|
[JsonProperty("verticalLocation")]
|
||||||
public int VerticalLocation { get; set; }
|
public int VerticalLocation { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the horizontal location position for this destination.
|
||||||
|
/// Used for spatial positioning in multi-display configurations.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("horizontalLocation")]
|
[JsonProperty("horizontalLocation")]
|
||||||
public int HorizontalLocation { get; set; }
|
public int HorizontalLocation { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the signal type that this destination can receive (Audio, Video, AudioVideo, etc.).
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("sinkType")]
|
[JsonProperty("sinkType")]
|
||||||
public eRoutingSignalType SinkType { get; set; }
|
public eRoutingSignalType SinkType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets a value indicating whether this destination is used for codec content sharing.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("isCodecContentDestination")]
|
[JsonProperty("isCodecContentDestination")]
|
||||||
public bool isCodecContentDestination { get; set; }
|
public bool isCodecContentDestination { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets a value indicating whether this destination is used for program audio output.
|
||||||
|
/// </summary>
|
||||||
[JsonProperty("isProgramAudioDestination")]
|
[JsonProperty("isProgramAudioDestination")]
|
||||||
public bool isProgramAudioDestination { get; set; }
|
public bool isProgramAudioDestination { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user