using System; using System.Collections.Generic; using System.Linq; using System.Text; using Crestron.SimplSharp; namespace PepperDash.Core.JsonToSimpl { /// /// Constants for Simpl modules /// public class JsonToSimplConstants { /// /// /// public const ushort BoolValueChange = 1; /// /// /// public const ushort JsonIsValidBoolChange = 2; /// /// Reports the if the device is 3-series compatible /// public const ushort ProgramCompatibility3SeriesChange = 3; /// /// Reports the if the device is 4-series compatible /// public const ushort ProgramCompatibility4SeriesChange = 4; /// /// Reports the device platform enum value /// public const ushort DevicePlatformValueChange = 5; /// /// /// public const ushort UshortValueChange = 101; /// /// /// public const ushort StringValueChange = 201; /// /// /// public const ushort FullPathToArrayChange = 202; /// /// /// public const ushort ActualFilePathChange = 203; /// /// /// public const ushort FilenameResolvedChange = 204; /// /// /// public const ushort FilePathResolvedChange = 205; /// /// Reports the root directory change /// public const ushort RootDirectoryChange = 206; /// /// Reports the room ID change /// public const ushort RoomIdChange = 207; /// /// Reports the room name change /// public const ushort RoomNameChange = 208; } /// /// S+ values delegate /// public delegate void SPlusValuesDelegate(); /// /// S+ values wrapper /// public class SPlusValueWrapper { /// /// /// public SPlusType ValueType { get; private set; } /// /// /// public ushort Index { get; private set; } /// /// /// public ushort BoolUShortValue { get; set; } /// /// /// public string StringValue { get; set; } /// /// /// public SPlusValueWrapper() {} /// /// /// /// /// public SPlusValueWrapper(SPlusType type, ushort index) { ValueType = type; Index = index; } } /// /// S+ types enum /// public enum SPlusType { /// /// Digital /// Digital, /// /// Analog /// Analog, /// /// String /// String } }