mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
wip: updates to HdPsXxx class while test implementation to resolve exceptions
This commit is contained in:
@@ -64,14 +64,16 @@ namespace PepperDash_Essentials_DM.Chassis
|
|||||||
}
|
}
|
||||||
|
|
||||||
InputPorts = new RoutingPortCollection<RoutingInputPort>();
|
InputPorts = new RoutingPortCollection<RoutingInputPort>();
|
||||||
InputNames = new Dictionary<uint, string>();
|
|
||||||
InputNameFeedbacks = new FeedbackCollection<StringFeedback>();
|
InputNameFeedbacks = new FeedbackCollection<StringFeedback>();
|
||||||
InputHdcpEnableFeedback = new FeedbackCollection<BoolFeedback>();
|
InputHdcpEnableFeedback = new FeedbackCollection<BoolFeedback>();
|
||||||
|
InputNames = new Dictionary<uint, string>();
|
||||||
|
//InputNames = props.Inputs;
|
||||||
|
|
||||||
OutputPorts = new RoutingPortCollection<RoutingOutputPort>();
|
OutputPorts = new RoutingPortCollection<RoutingOutputPort>();
|
||||||
OutputNames = new Dictionary<uint, string>();
|
|
||||||
OutputNameFeedbacks = new FeedbackCollection<StringFeedback>();
|
OutputNameFeedbacks = new FeedbackCollection<StringFeedback>();
|
||||||
OutputRouteNameFeedback = new FeedbackCollection<StringFeedback>();
|
OutputRouteNameFeedback = new FeedbackCollection<StringFeedback>();
|
||||||
|
OutputNames = new Dictionary<uint, string>();
|
||||||
|
//OutputNames = props.Outputs;
|
||||||
|
|
||||||
VideoInputSyncFeedbacks = new FeedbackCollection<BoolFeedback>();
|
VideoInputSyncFeedbacks = new FeedbackCollection<BoolFeedback>();
|
||||||
VideoOutputRouteFeedbacks = new FeedbackCollection<IntFeedback>();
|
VideoOutputRouteFeedbacks = new FeedbackCollection<IntFeedback>();
|
||||||
@@ -95,6 +97,15 @@ namespace PepperDash_Essentials_DM.Chassis
|
|||||||
// input setup
|
// input setup
|
||||||
private void SetupInputs(Dictionary<uint, string> dict)
|
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;
|
InputNames = dict;
|
||||||
|
|
||||||
for (uint i = 1; i <= _chassis.NumberOfInputs; i++)
|
for (uint i = 1; i <= _chassis.NumberOfInputs; i++)
|
||||||
@@ -129,6 +140,15 @@ namespace PepperDash_Essentials_DM.Chassis
|
|||||||
// output setup
|
// output setup
|
||||||
private void SetupOutputs(Dictionary<uint, string> dict)
|
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;
|
OutputNames = dict;
|
||||||
|
|
||||||
for (uint i = 1; i <= _chassis.NumberOfOutputs; i++)
|
for (uint i = 1; i <= _chassis.NumberOfOutputs; i++)
|
||||||
@@ -602,7 +622,7 @@ namespace PepperDash_Essentials_DM.Chassis
|
|||||||
var type = dc.Type.ToLower();
|
var type = dc.Type.ToLower();
|
||||||
var control = props.Control;
|
var control = props.Control;
|
||||||
var ipid = control.IpIdInt;
|
var ipid = control.IpIdInt;
|
||||||
var address = control.TcpSshProperties.Address;
|
//var address = control.TcpSshProperties.Address;
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using PepperDash.Core;
|
using PepperDash.Core;
|
||||||
|
using PepperDash.Essentials.DM.Config;
|
||||||
|
|
||||||
namespace PepperDash_Essentials_DM.Config
|
namespace PepperDash_Essentials_DM.Config
|
||||||
{
|
{
|
||||||
@@ -10,9 +11,20 @@ namespace PepperDash_Essentials_DM.Config
|
|||||||
public ControlPropertiesConfig Control { get; set; }
|
public ControlPropertiesConfig Control { get; set; }
|
||||||
|
|
||||||
[JsonProperty("inputs")]
|
[JsonProperty("inputs")]
|
||||||
|
//public Dictionary<uint, InputPropertiesConfig> Inputs { get; set; }
|
||||||
public Dictionary<uint, string> Inputs { get; set; }
|
public Dictionary<uint, string> Inputs { get; set; }
|
||||||
|
|
||||||
[JsonProperty("outputs")]
|
[JsonProperty("outputs")]
|
||||||
|
//public Dictionary<uint, InputPropertiesConfig> Outputs { get; set; }
|
||||||
public Dictionary<uint, string> 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