Skip to content

Commit

Permalink
Add more DataTreeObject-Attributes to some Enums
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Nov 22, 2024
1 parent 820675a commit d2de40c
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 8 deletions.
7 changes: 6 additions & 1 deletion RDMSharp/RDM/Enum/ERDM_IdentifyMode.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
namespace RDMSharp
using RDMSharp.Metadata;
using RDMSharp.Metadata.JSON;

namespace RDMSharp
{
//E1.37-1
[DataTreeObject(ERDM_Parameter.IDENTIFY_MODE, Command.ECommandDublicte.GetResponse)]
[DataTreeObject(ERDM_Parameter.IDENTIFY_MODE, Command.ECommandDublicte.SetRequest)]
public enum ERDM_IdentifyMode : byte
{
QUIET = 0x00,
Expand Down
6 changes: 5 additions & 1 deletion RDMSharp/RDM/Enum/ERDM_LampMode.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
using System.ComponentModel;
using RDMSharp.Metadata;
using RDMSharp.Metadata.JSON;
using System.ComponentModel;

namespace RDMSharp
{
[DataTreeObject(ERDM_Parameter.LAMP_ON_MODE, Command.ECommandDublicte.GetResponse)]
[DataTreeObject(ERDM_Parameter.LAMP_ON_MODE, Command.ECommandDublicte.SetRequest)]
public enum ERDM_LampMode : byte
{
[Description("Lamp Stays off until directly instructed to Strike.")]
Expand Down
6 changes: 5 additions & 1 deletion RDMSharp/RDM/Enum/ERDM_LampState.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
using System.ComponentModel;
using RDMSharp.Metadata;
using RDMSharp.Metadata.JSON;
using System.ComponentModel;

namespace RDMSharp
{
[DataTreeObject(ERDM_Parameter.LAMP_STATE, Command.ECommandDublicte.GetResponse)]
[DataTreeObject(ERDM_Parameter.LAMP_STATE, Command.ECommandDublicte.SetRequest)]
public enum ERDM_LampState : byte
{
[Description("Off")]
Expand Down
7 changes: 6 additions & 1 deletion RDMSharp/RDM/Enum/ERDM_MergeMode.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
namespace RDMSharp
using RDMSharp.Metadata;
using RDMSharp.Metadata.JSON;

namespace RDMSharp
{
[DataTreeObject(ERDM_Parameter.PRESET_MERGEMODE, Command.ECommandDublicte.GetResponse)]
[DataTreeObject(ERDM_Parameter.PRESET_MERGEMODE, Command.ECommandDublicte.SetRequest)]
public enum ERDM_MergeMode : byte
{
DEFAULT = 0x00,
Expand Down
7 changes: 6 additions & 1 deletion RDMSharp/RDM/Enum/ERDM_PowerState.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
namespace RDMSharp
using RDMSharp.Metadata;
using RDMSharp.Metadata.JSON;

namespace RDMSharp
{
[DataTreeObject(ERDM_Parameter.POWER_STATE, Command.ECommandDublicte.GetResponse)]
[DataTreeObject(ERDM_Parameter.POWER_STATE, Command.ECommandDublicte.SetRequest)]
public enum ERDM_PowerState : byte
{
FULL_OFF = 0x00,
Expand Down
6 changes: 5 additions & 1 deletion RDMSharp/RDM/Enum/ERDM_ProductDetail.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
namespace RDMSharp
using RDMSharp.Metadata;
using RDMSharp.Metadata.JSON;

namespace RDMSharp
{
[DataTreeObject(ERDM_Parameter.PRODUCT_DETAIL_ID_LIST, Command.ECommandDublicte.GetResponse)]
public enum ERDM_ProductDetail : ushort
{
NONE = 0x0000,
Expand Down
6 changes: 5 additions & 1 deletion RDMSharp/RDM/Enum/ERDM_ResetType.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
namespace RDMSharp
using RDMSharp.Metadata;
using RDMSharp.Metadata.JSON;

namespace RDMSharp
{
[DataTreeObject(ERDM_Parameter.RESET_DEVICE, Command.ECommandDublicte.SetRequest)]
public enum ERDM_ResetType : byte
{
Warm = 0x01,
Expand Down
7 changes: 6 additions & 1 deletion RDMSharp/RDM/Enum/ERDM_ShippingLockState.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
namespace RDMSharp
using RDMSharp.Metadata;
using RDMSharp.Metadata.JSON;

namespace RDMSharp
{
//E1.37-5
[DataTreeObject(ERDM_Parameter.SHIPPING_LOCK, Command.ECommandDublicte.GetResponse)]
[DataTreeObject(ERDM_Parameter.SHIPPING_LOCK, Command.ECommandDublicte.SetRequest)]
public enum ERDM_ShippingLockState : byte
{
/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions RDMSharp/RDM/Enum/ERDM_Status.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
namespace RDMSharp
{
[DataTreeObject(ERDM_Parameter.STATUS_MESSAGES, Command.ECommandDublicte.GetRequest)]
[DataTreeObject(ERDM_Parameter.SUB_DEVICE_STATUS_REPORT_THRESHOLD, Command.ECommandDublicte.GetResponse)]
[DataTreeObject(ERDM_Parameter.SUB_DEVICE_STATUS_REPORT_THRESHOLD, Command.ECommandDublicte.SetRequest)]
public enum ERDM_Status : byte
{
NONE = 0x00,
Expand Down

0 comments on commit d2de40c

Please sign in to comment.