Skip to content

Commit

Permalink
fix: Adds back in missing code for brightness and test pattern contro…
Browse files Browse the repository at this point in the history
…l from @mhengeli
  • Loading branch information
ndorin committed Aug 15, 2024
1 parent fdae696 commit 52afe7b
Show file tree
Hide file tree
Showing 6 changed files with 409 additions and 49 deletions.
22 changes: 21 additions & 1 deletion src/JsonObjects/ApiObjects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,37 @@ public class DevObject
{
[JsonProperty("display")]
public DisplayObject Display { get; set; }
[JsonProperty("ingest")]
public IngestObject Ingest { get; set; }
}

public class DisplayObject
{
[JsonProperty("blackout", NullValueHandling = NullValueHandling.Ignore)]
public bool? Blackout { get; set; }

[JsonProperty("redundancy")]
[JsonProperty("brightness", NullValueHandling = NullValueHandling.Ignore)]
public int? Brightness { get; set; }

[JsonProperty("redundancy", NullValueHandling = NullValueHandling.Ignore)]
public Redundancy Redundancy { get; set; }
}

public class IngestObject
{
[JsonProperty("testPattern")]
public TestPatternObject TestPattern { get; set; }
}


public class TestPatternObject
{
[JsonProperty("enabled")]
public bool Enabled { get; set; }
[JsonProperty("type")]
public string Type { get; set; }
}

public class Redundancy
{
[JsonProperty("state")]
Expand Down
86 changes: 86 additions & 0 deletions src/MegapixelHelioBridgeJoinMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,78 @@ public class MegapixelHeliosBridgeJoinMap : JoinMapBaseAdvanced
JoinType = eJoinType.Digital
});

[JoinName("TestPatternOn")]
public JoinDataComplete TestPatternOn = new JoinDataComplete(
new JoinData
{
JoinNumber = 31,
JoinSpan = 1
},
new JoinMetadata
{
Description = "Test Pattern On set & get",
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
JoinType = eJoinType.Digital
});

[JoinName("TestPatternOff")]
public JoinDataComplete TestPatternOff = new JoinDataComplete(
new JoinData
{
JoinNumber = 32,
JoinSpan = 1
},
new JoinMetadata
{
Description = "Test Pattern Off set & get",
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
JoinType = eJoinType.Digital
});



[JoinName("BrightnessHigh")]
public JoinDataComplete BrightnessHigh = new JoinDataComplete(
new JoinData
{
JoinNumber = 33,
JoinSpan = 1
},
new JoinMetadata
{
Description = "Set Brightness High",
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
JoinType = eJoinType.Digital
});

[JoinName("BrightnessMedium")]
public JoinDataComplete BrightnessMedium = new JoinDataComplete(
new JoinData
{
JoinNumber = 34,
JoinSpan = 1
},
new JoinMetadata
{
Description = "Set Brightness Medium",
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
JoinType = eJoinType.Digital
});

[JoinName("BrightnessLow")]
public JoinDataComplete BrightnessLow = new JoinDataComplete(
new JoinData
{
JoinNumber = 35,
JoinSpan = 1
},
new JoinMetadata
{
Description = "Set Brightness Low",
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
JoinType = eJoinType.Digital
});


[JoinName("IsOnline")]
public JoinDataComplete IsOnline = new JoinDataComplete(
Expand Down Expand Up @@ -114,6 +186,20 @@ public class MegapixelHeliosBridgeJoinMap : JoinMapBaseAdvanced
JoinType = eJoinType.Analog
});

[JoinName("Brightness")]
public JoinDataComplete Brightness = new JoinDataComplete(
new JoinData
{
JoinNumber = 33,
JoinSpan = 1
},
new JoinMetadata
{
Description = "Set Brightness",
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
JoinType = eJoinType.Analog
});

#endregion


Expand Down
Loading

0 comments on commit 52afe7b

Please sign in to comment.