mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 13:15:03 +00:00
feat: add device and custom property enums
This commit is contained in:
@@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ namespace PepperDash.Essentials.Core
|
|||||||
[JsonProperty("devices")]
|
[JsonProperty("devices")]
|
||||||
public Dictionary<string, DeviceStatus> Devices { get; set; }
|
public Dictionary<string, DeviceStatus> Devices { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user