mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-30 12:54:54 +00:00
wip: updates to HdPsXxx class while test implementation to resolve exceptions
This commit is contained in:
@@ -63,15 +63,17 @@ namespace PepperDash_Essentials_DM.Chassis
|
||||
return;
|
||||
}
|
||||
|
||||
InputPorts = new RoutingPortCollection<RoutingInputPort>();
|
||||
InputNames = new Dictionary<uint, string>();
|
||||
InputPorts = new RoutingPortCollection<RoutingInputPort>();
|
||||
InputNameFeedbacks = new FeedbackCollection<StringFeedback>();
|
||||
InputHdcpEnableFeedback = new FeedbackCollection<BoolFeedback>();
|
||||
InputNames = new Dictionary<uint, string>();
|
||||
//InputNames = props.Inputs;
|
||||
|
||||
OutputPorts = new RoutingPortCollection<RoutingOutputPort>();
|
||||
OutputNames = new Dictionary<uint, string>();
|
||||
OutputNameFeedbacks = new FeedbackCollection<StringFeedback>();
|
||||
OutputRouteNameFeedback = new FeedbackCollection<StringFeedback>();
|
||||
OutputNames = new Dictionary<uint, string>();
|
||||
//OutputNames = props.Outputs;
|
||||
|
||||
VideoInputSyncFeedbacks = new FeedbackCollection<BoolFeedback>();
|
||||
VideoOutputRouteFeedbacks = new FeedbackCollection<IntFeedback>();
|
||||
@@ -95,6 +97,15 @@ namespace PepperDash_Essentials_DM.Chassis
|
||||
// input setup
|
||||
private void SetupInputs(Dictionary<uint, string> dict)
|
||||
{
|
||||
if (dict == null)
|
||||
{
|
||||
Debug.Console(1, this, "Failed to setup inputs, properties are null");
|
||||
return;
|
||||
}
|
||||
foreach (var kvp in dict)
|
||||
{
|
||||
Debug.Console(1, this, "props.Input[{0}]: {1}", kvp.Key, kvp.Value);
|
||||
}
|
||||
InputNames = dict;
|
||||
|
||||
for (uint i = 1; i <= _chassis.NumberOfInputs; i++)
|
||||
@@ -129,6 +140,15 @@ namespace PepperDash_Essentials_DM.Chassis
|
||||
// output setup
|
||||
private void SetupOutputs(Dictionary<uint, string> dict)
|
||||
{
|
||||
if (dict == null)
|
||||
{
|
||||
Debug.Console(1, this, "Failed to setup outputs, properties are null");
|
||||
return;
|
||||
}
|
||||
foreach (var kvp in dict)
|
||||
{
|
||||
Debug.Console(1, this, "props.Output[{0}]: {1}", kvp.Key, kvp.Value);
|
||||
}
|
||||
OutputNames = dict;
|
||||
|
||||
for (uint i = 1; i <= _chassis.NumberOfOutputs; i++)
|
||||
@@ -602,7 +622,7 @@ namespace PepperDash_Essentials_DM.Chassis
|
||||
var type = dc.Type.ToLower();
|
||||
var control = props.Control;
|
||||
var ipid = control.IpIdInt;
|
||||
var address = control.TcpSshProperties.Address;
|
||||
//var address = control.TcpSshProperties.Address;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.DM.Config;
|
||||
|
||||
namespace PepperDash_Essentials_DM.Config
|
||||
{
|
||||
@@ -10,9 +11,20 @@ namespace PepperDash_Essentials_DM.Config
|
||||
public ControlPropertiesConfig Control { get; set; }
|
||||
|
||||
[JsonProperty("inputs")]
|
||||
//public Dictionary<uint, InputPropertiesConfig> Inputs { get; set; }
|
||||
public Dictionary<uint, string> Inputs { get; set; }
|
||||
|
||||
[JsonProperty("outputs")]
|
||||
public Dictionary<uint, string> Outputs { get; set; }
|
||||
//public Dictionary<uint, InputPropertiesConfig> Outputs { get; set; }
|
||||
public Dictionary<uint, string> Outputs { get; set; }
|
||||
|
||||
public HdPsXxxPropertiesConfig()
|
||||
{
|
||||
//Inputs = new Dictionary<uint, InputPropertiesConfig>();
|
||||
//Outputs = new Dictionary<uint, InputPropertiesConfig>();
|
||||
|
||||
Inputs = new Dictionary<uint, string>();
|
||||
Outputs = new Dictionary<uint, string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user