using System; using System.Collections.Generic; using System.Linq; using System.Text; using Crestron.SimplSharp; using Newtonsoft.Json; namespace PepperDash.Essentials.Core.Presets { /// /// Represents a PresetBase /// public class PresetBase { [JsonProperty("id")] /// /// Gets or sets the ID /// public int ID { get; set; } /// /// Used to store the name of the preset /// [JsonProperty("description")] /// /// Gets or sets the Description /// public string Description { get; set; } /// /// Indicates if the preset is defined(stored) in the codec /// [JsonProperty("defined")] /// /// Gets or sets the Defined /// public bool Defined { get; set; } /// /// Indicates if the preset has the capability to be defined /// [JsonProperty("isDefinable")] /// /// Gets or sets the IsDefinable /// public bool IsDefinable { get; set; } public PresetBase(int id, string description, bool def, bool isDef) { ID = id; Description = description; Defined = def; IsDefinable = isDef; } } }