feat: add device and custom property enums

This commit is contained in:
Aviv Cohn
2025-12-10 09:51:36 -05:00
parent c66062d87f
commit 5edc5bd894
4 changed files with 40 additions and 20 deletions

View File

@@ -1,12 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PepperDash.Essentials.Core
{
internal interface IUDMAPI
internal interface IUdmApi
{
bool SetDeviceProperty(DeviceKeys DeviceKey, DeviceStatus DeviceStatus );
}
}

View File

@@ -11,4 +11,4 @@ namespace PepperDash.Essentials.Core
[JsonProperty("devices")]
public Dictionary<string, DeviceStatus> Devices { get; set; }
}
}
}

View File

@@ -0,0 +1,30 @@
namespace PepperDash.Essentials.Core
{
/// <summary>
/// Enumeration of valid custom property identifiers for UDM API.
/// Property keys must be in the format "property1" through "property20".
/// </summary>
internal enum PropertyKeys
{
property1,
property2,
property3,
property4,
property5,
property6,
property7,
property8,
property9,
property10,
property11,
property12,
property13,
property14,
property15,
property16,
property17,
property18,
property19,
property20
}
}

View File

@@ -1,14 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PepperDash.Essentials.Core
namespace PepperDash.Essentials.Core
{
internal class DeviceEnums
{
public enum DeviceKeys
/// <summary>
/// Enumeration of valid device identifiers for UDM API status properties.
/// Device keys must be in the format "device1" through "device20".
/// </summary>
internal enum DeviceKeys
{
device1,
device2,
@@ -30,7 +26,5 @@ namespace PepperDash.Essentials.Core
device18,
device19,
device20
}
}
}