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 AppleTvJoinMap : JoinMapBase
{
#region Digitals
///
/// Sends up arrow command while high
///
public uint UpArrow { get; set; }
///
/// Sends down arrow command while high
///
public uint DnArrow { get; set; }
///
/// Sends left arrow command while high
///
public uint LeftArrow { get; set; }
///
/// Sends right arrow command while high
///
public uint RightArrow { get; set; }
///
/// Sends menu command
///
public uint Menu { get; set; }
///
/// Sends select command
///
public uint Select { get; set; }
///
/// Sends play/pause command
///
public uint PlayPause { get; set; }
#endregion
public AppleTvJoinMap()
{
UpArrow = 1;
DnArrow = 2;
LeftArrow = 3;
RightArrow = 4;
Menu = 5;
Select = 6;
PlayPause = 7;
}
public override void OffsetJoinNumbers(uint joinStart)
{
var joinOffset = joinStart - 1;
UpArrow = UpArrow + joinOffset;
DnArrow = DnArrow + joinOffset;
LeftArrow = LeftArrow + joinOffset;
RightArrow = RightArrow + joinOffset;
Menu = Menu + joinOffset;
Select = Select + joinOffset;
PlayPause = PlayPause + joinOffset;
}
}
}