using System; using System.Collections.Generic; using System.Linq; using System.Text; using Crestron.SimplSharp; using PepperDash.Essentials.Core; namespace PepperDash.Essentials.Bridges { [Obsolete("Please use version PepperDash.Essentials.Core.Bridges")] public class AirMediaControllerJoinMap : JoinMapBase { #region Digitals /// /// Indicates that the device is online when high /// public uint IsOnline { get; set; } /// /// Indicates that the device is in session when high /// public uint IsInSession { get; set; } /// /// Indicates sync detected on HDMI input when high /// public uint HdmiVideoSync { get; set; } /// /// Set High to enable automatic input routing and low to disable. Feedback high when enabled /// public uint AutomaticInputRoutingEnabled { get; set; } #endregion #region Analogs /// /// Selects source and provides feedback /// public uint VideoOut { get; set; } /// /// Provided error feedback /// public uint ErrorFB { get; set; } /// /// Indicates the number of connected users as feedback /// public uint NumberOfUsersConnectedFB { get; set; } /// /// Sets the login code and provides the current code as feedback /// public uint LoginCode { get; set; } #endregion #region Serials /// /// Provides the name defined in config as feedback /// public uint Name { get; set; } /// /// Provides the connection address as feedback /// public uint ConnectionAddressFB { get; set; } /// /// Provides the hostname as feedback /// public uint HostnameFB { get; set; } /// /// Provides the serial number as feedback /// public uint SerialNumberFeedback { get; set; } #endregion public AirMediaControllerJoinMap() { // Digital IsOnline = 1; IsInSession = 2; HdmiVideoSync = 3; AutomaticInputRoutingEnabled = 4; // Analog VideoOut = 1; ErrorFB = 2; NumberOfUsersConnectedFB = 3; LoginCode = 4; // Serial Name = 1; ConnectionAddressFB = 2; HostnameFB = 3; SerialNumberFeedback = 4; } public override void OffsetJoinNumbers(uint joinStart) { var joinOffset = joinStart - 1; IsOnline = IsOnline + joinOffset; IsInSession = IsInSession + joinOffset; HdmiVideoSync = HdmiVideoSync + joinOffset; AutomaticInputRoutingEnabled = AutomaticInputRoutingEnabled + joinOffset; VideoOut = VideoOut + joinOffset; ErrorFB = ErrorFB + joinOffset; NumberOfUsersConnectedFB = NumberOfUsersConnectedFB + joinOffset; LoginCode = LoginCode + joinOffset; Name = Name + joinOffset; ConnectionAddressFB = ConnectionAddressFB + joinOffset; HostnameFB = HostnameFB + joinOffset; SerialNumberFeedback = SerialNumberFeedback + joinOffset; } } }