using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
using PepperDash.Core;
using Newtonsoft.Json;
namespace EssentialsPluginTemplateEPI
{
///
/// 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
///
public class EssentialsPluginTemplatePropertiesConfig
{
// Below are some example properties
///
/// 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
///
[JsonProperty("control", Required = Required.Always)]
ControlPropertiesConfig Control { get; set; }
///
/// Add custom properties here
///
[JsonProperty("myDeviceProperty")]
string MyDeviceProperty { get; set; }
}
}