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 namespace PepperDash.Essentials.Core
{ {
internal interface IUDMAPI internal interface IUdmApi
{ {
bool SetDeviceProperty(DeviceKeys DeviceKey, DeviceStatus DeviceStatus );
} }
} }

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