using System.Collections.Generic; using PepperDash.Core; using PepperDash.Essentials.Core; using PepperDash.Essentials.Core.Config; using Serilog.Events; namespace PepperDash.Essentials.Devices.Common { /// /// Represents a AppleTVFactory /// public class AppleTVFactory : EssentialsDeviceFactory { /// /// Initializes a new instance of the class /// public AppleTVFactory() { TypeNames = new List() { "appletv" }; } /// /// BuildDevice method /// /// public override EssentialsDevice BuildDevice(DeviceConfig dc) { Debug.LogMessage(LogEventLevel.Debug, "Factory Attempting to create new AppleTV Device"); var irCont = IRPortHelper.GetIrOutputPortController(dc); return new AppleTV(dc.Key, dc.Name, irCont); } } }