using System; using System.Collections.Generic; using System.Linq; using System.Text; using Crestron.SimplSharp; using Newtonsoft.Json; namespace PepperDash.Essentials.Core.CrestronIO { /// /// Represents a IOPortConfig /// public class IOPortConfig { /// /// Gets or sets the PortDeviceKey /// [JsonProperty("portDeviceKey")] public string PortDeviceKey { get; set; } /// /// Gets or sets the PortNumber /// [JsonProperty("portNumber")] public uint PortNumber { get; set; } /// /// Gets or sets the DisablePullUpResistor /// [JsonProperty("disablePullUpResistor")] public bool DisablePullUpResistor { get; set; } /// /// Gets or sets the MinimumChange /// [JsonProperty("minimumChange")] public int MinimumChange { get; set; } /// /// Gets or sets the circuit type: "NO" (Normally Open) or "NC" (Normally Closed) /// If set to "NC", the input state will be inverted. Defaults to "NO" if not specified. /// [JsonProperty("circuitType")] public string CircuitType { get; set; } = "NO"; } }