feat: Allows for the ItemKey to be left undefined or empty and the ParentDeviceKey to be used on it's own instead.

This commit is contained in:
Neil Dorin
2024-08-28 13:16:27 -06:00
parent 90251d92df
commit aa503f3b29
2 changed files with 18 additions and 2 deletions

View File

@@ -9,9 +9,15 @@ namespace PepperDash.Essentials.Core
{
public abstract class AudioControlListItemBase
{
/// <summary>
/// Key of the parent device in the DeviceManager
/// </summary>
[JsonProperty("parentDeviceKey")]
public string ParentDeviceKey { get; set; }
/// <summary>
/// Optional key of the item in the parent device
/// </summary>
[JsonProperty("itemKey")]
public string ItemKey { get; set; }