4 using System.Collections.Generic;
6 using System.Runtime.InteropServices;
7 using System.Runtime.Serialization;
9 using System.Threading.Tasks;
11 namespace SharpDisplayManager
14 /// Abstract CEC action using a device logical address.
17 public abstract class ActionCecDevice: SharpLib.Ear.Action
20 [AttributeObjectProperty
24 Description = "The logical address used by this action."
27 public CecLogicalAddress Device { get; set; }
32 public string DeviceName {
35 if (Device == CecLogicalAddress.Broadcast)
37 //Because of duplicate value in enumeration
41 return Device.ToString();