mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
fix: fixes type of AudioControlPointLists
This commit is contained in:
@@ -26,7 +26,7 @@ namespace PepperDash.Essentials.Core.Config
|
|||||||
public Dictionary<string, Dictionary<string, DestinationListItem>> DestinationLists { get; set; }
|
public Dictionary<string, Dictionary<string, DestinationListItem>> DestinationLists { get; set; }
|
||||||
|
|
||||||
[JsonProperty("audioControlPointLists")]
|
[JsonProperty("audioControlPointLists")]
|
||||||
public Dictionary<string, Dictionary<string, AudioControlPointListItem>> AudioControlPointLists { get; set; }
|
public Dictionary<string, AudioControlPointListItem> AudioControlPointLists { get; set; }
|
||||||
|
|
||||||
[JsonProperty("tieLines")]
|
[JsonProperty("tieLines")]
|
||||||
public List<TieLineConfig> TieLines { get; set; }
|
public List<TieLineConfig> TieLines { get; set; }
|
||||||
@@ -40,7 +40,7 @@ namespace PepperDash.Essentials.Core.Config
|
|||||||
Devices = new List<DeviceConfig>();
|
Devices = new List<DeviceConfig>();
|
||||||
SourceLists = new Dictionary<string, Dictionary<string, SourceListItem>>();
|
SourceLists = new Dictionary<string, Dictionary<string, SourceListItem>>();
|
||||||
DestinationLists = new Dictionary<string, Dictionary<string, DestinationListItem>>();
|
DestinationLists = new Dictionary<string, Dictionary<string, DestinationListItem>>();
|
||||||
AudioControlPointLists = new Dictionary<string, Dictionary<string, AudioControlPointListItem>>();
|
AudioControlPointLists = new Dictionary<string, AudioControlPointListItem>();
|
||||||
TieLines = new List<TieLineConfig>();
|
TieLines = new List<TieLineConfig>();
|
||||||
JoinMaps = new Dictionary<string, JObject>();
|
JoinMaps = new Dictionary<string, JObject>();
|
||||||
}
|
}
|
||||||
@@ -76,7 +76,7 @@ namespace PepperDash.Essentials.Core.Config
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="key">key of the list to retrieve</param>
|
/// <param name="key">key of the list to retrieve</param>
|
||||||
/// <returns>AudioControlPointList if the key exists, null otherwise</returns>
|
/// <returns>AudioControlPointList if the key exists, null otherwise</returns>
|
||||||
public Dictionary<string, AudioControlPointListItem> GetAudioControlPointListForKey(string key)
|
public AudioControlPointListItem GetAudioControlPointListForKey(string key)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(key) || !AudioControlPointLists.ContainsKey(key))
|
if (string.IsNullOrEmpty(key) || !AudioControlPointLists.ContainsKey(key))
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user