[fix] slight change to move CodecCommandWithLabel into the VideoCodec namespace and modify the IHasCodecLayoutsAvailable interface to utilize this class

Modifies #966
This commit is contained in:
Trevor Payne
2022-07-12 15:02:22 -05:00
parent b505ad467b
commit 9ecaec5584
5 changed files with 18 additions and 17 deletions

View File

@@ -2470,20 +2470,6 @@ ConnectorID: {2}"
} }
/// <summary>
/// Represents a codec command that might need to have a friendly label applied for UI feedback purposes
/// </summary>
public class CodecCommandWithLabel
{
public string Command { get; set; }
public string Label { get; set; }
public CodecCommandWithLabel(string command, string label)
{
Command = command;
Label = label;
}
}
/// <summary> /// <summary>
/// Tracks the initial sycnronization state of the codec when making a connection /// Tracks the initial sycnronization state of the codec when making a connection

View File

@@ -28,7 +28,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
public interface IHasCodecLayoutsAvailable : IHasCodecLayouts public interface IHasCodecLayoutsAvailable : IHasCodecLayouts
{ {
StringFeedback AvailableLocalLayoutsFeedback { get; set; } StringFeedback AvailableLocalLayoutsFeedback { get; set; }
Dictionary<string, string> AvailableLocalLayouts { get; set; } List<CodecCommandWithLabel> AvailableLocalLayouts { get; set; }
void LocalLayoutSet(string layoutId); void LocalLayoutSet(string layoutId);
} }

View File

@@ -1,5 +1,5 @@
using PepperDash.Essentials.Core; using PepperDash.Essentials.Core;
using PepperDash.Essentials.Devices.Common.VideoCodec.Cisco; using PepperDash.Essentials.Devices.Common.VideoCodec;
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
{ {

View File

@@ -1,4 +1,4 @@
using PepperDash.Essentials.Devices.Common.VideoCodec.Cisco; using PepperDash.Essentials.Devices.Common.VideoCodec;
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
{ {

View File

@@ -1995,4 +1995,19 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
} }
} }
} }
/// <summary>
/// Represents a codec command that might need to have a friendly label applied for UI feedback purposes
/// </summary>
public class CodecCommandWithLabel
{
public string Command { get; set; }
public string Label { get; set; }
public CodecCommandWithLabel(string command, string label)
{
Command = command;
Label = label;
}
}
} }