-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from PepperDash/feature/IPrivacy
Add IPrivacy
- Loading branch information
Showing
10 changed files
with
169 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,3 @@ jobs: | |
branch: ${{ github.ref_name }} | ||
default-branch: "main" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,43 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Crestron.SimplSharp; | ||
|
||
using Newtonsoft.Json; | ||
using PepperDash.Core; | ||
using PepperDash.Essentials.Core; | ||
|
||
namespace pdt_shureMXW_epi | ||
{ | ||
public class Properties | ||
{ | ||
public ControlPropertiesConfig Control { get; set; } | ||
|
||
public List<Mics> Mics { get; set; } | ||
[JsonProperty("cautionThreshold")] | ||
public int CautionThreshold { get; set; } | ||
[JsonProperty("WarningThreshold")] | ||
public int WarningThreshold { get; set; } | ||
} | ||
|
||
public class Mic : IKeyed | ||
{ | ||
public string Key { get; set; } | ||
public int Index { get; set; } | ||
public bool Enabled { get; set; } | ||
public string Name { get; set; } | ||
|
||
public int cautionthreshold { get; set; } | ||
public int warningThreshold { get; set; } | ||
public Mic(string key, MicDict mic) | ||
{ | ||
Key = key; | ||
Index = mic.Index; | ||
Enabled = mic.Enabled || mic.Enable; | ||
Name = mic.Name; | ||
} | ||
} | ||
|
||
public class Mics | ||
public class MicDict | ||
{ | ||
public int index { get; set; } | ||
public bool enabled { get; set; } | ||
public string name { get; set; } | ||
[JsonProperty("index")] | ||
public int Index { get; set; } | ||
[JsonProperty("enabled")] | ||
public bool Enabled { get; set; } | ||
[JsonProperty("enable")] | ||
public bool Enable { get; set; } | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
} | ||
} |
Oops, something went wrong.