mirror of
https://github.com/PepperDash/EssentialsPluginTemplate.git
synced 2026-08-31 19:28:19 +00:00
Comment updates and License added.
This commit is contained in:
parent
caf2731dfb
commit
a42f67b8d6
25 changed files with 117 additions and 31 deletions
|
|
@ -11,16 +11,27 @@ using Newtonsoft.Json;
|
|||
namespace EssentialsPluginTemplateEPI
|
||||
{
|
||||
/// <summary>
|
||||
/// Example of a config class that represents the structure of the Properties object of a DeviceConfig
|
||||
/// Example of a config class that represents the structure of the Properties object of a DeviceConfig.
|
||||
/// The BuildDevice method will attempt to deserialize the Properties object into this class.
|
||||
/// Populate with any necssary properties for your device
|
||||
/// </summary>
|
||||
public class EssentialsPluginTemplatePropertiesConfig
|
||||
{
|
||||
// Below are some example properties
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Control properties if needed to communicate with device
|
||||
/// Control properties if needed to communicate with device.
|
||||
/// The JsonProperty attribute has been added to specify the name
|
||||
/// of the object and that it is required
|
||||
/// </summary>
|
||||
[JsonProperty("control")]
|
||||
[JsonProperty("control", Required = Required.Always)]
|
||||
ControlPropertiesConfig Control { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Add custom properties here
|
||||
/// </summary>
|
||||
[JsonProperty("myDeviceProperty")]
|
||||
string MyDeviceProperty { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue