Open cdenig opened 1 year ago
@cdenig - is there any way I could convince you to gather those same examples with JSON terminal type turned on, since we're using that for control in this instance? Sometimes the responses are different enough that we can't directly infer the data.
There is a branch working on this so to avoid git conflicts here is what would be needed to add a change event: in xEvent.cs update UiEvent:
public class UiEvent // /Event/UserInterface/Extensions/Event
{
...
[JsonProperty("Changed")]
public UiEventType Changed { get; set; }
...
}
in UI_ExtensionsHandler.cs update ParseStatus:
public void ParseStatus(CiscoCodecEvents.UiEvent val)
{
...
else if (val.Changed != null)
{
action_.Type = "Changed";
action_.Value = val.Changed.Signal.Value;
}
...
I already pushed up something to account for this, I believe.
I'll check in the morning.
On Dec 11, 2022 9:20 PM, Rodney Driscoll @.***> wrote:
There is a branch working on this so to avoid git conflicts here is what would be needed to add a change event: in xEvent.cs update UiEvent:
public class UiEvent // /Event/UserInterface/Extensions/Event
{
...
[JsonProperty("Changed")]
public UiEventType Changed { get; set; }
...
}
in UI_ExtensionsHandler.cs update ParseStatus:
public void ParseStatus(CiscoCodecEvents.UiEvent val)
{
...
else if (val.Changed != null)
{
action_.Type = "Changed";
action_.Value = val.Changed.Signal.Value;
}
...
— Reply to this email directly, view it on GitHubhttps://github.com/PepperDash/epi-videoCodec-ciscoExtended/issues/7#issuecomment-1345775054, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKQSYORLPUF7QCM6ABI5PC3WM2DWBANCNFSM6AAAAAASXFA4VQ. You are receiving this because you commented.Message ID: @.***>
Describe the bug Switch Widgets produce Extension 'Changed' Events and the ParseStatus function in UIExtensionsHandler.cs is not processing 'Changed' Action Types.
Stacktrace List of Available UserInterface Extensions Events
To Reproduce Steps to reproduce the behavior:
Expected behavior Expect to see event strings sent to SIMPL when Switch events changes occur.
Screenshots N/A, but below are Text Console and SSH Console snippets showing events produced
Example 1. Widget Actions and Events registered feedback for Switch toggle on and off events
Example 2. Widget Actions and Events registered feedback for Button press event
Example 3. Widget Actions and Events registered feedback for Group Button press event
Example 4. Widget Actions and Events registered feedback for Direction Pad press event