4 using System.Collections.Generic;
5 using System.Diagnostics;
7 using System.Runtime.InteropServices;
8 using System.Runtime.Serialization;
10 using System.Threading.Tasks;
12 namespace SharpDisplayManager
15 [AttributeObject(Id = "Cec.Device.Standby", Name = "CEC Device Standby", Description = "Puts on standby the specified CEC device on your HDMI bus.")]
16 public class ActionCecDeviceStandby : ActionCecDevice
19 /// Build a user readable string to describe this action.
21 /// <returns></returns>
22 public override string Brief()
24 return "CEC Standby " + DeviceName;
30 protected override async Task DoExecute()
32 if (Cec.Client.Static == null)
34 Trace.WriteLine("WARNING: No CEC client installed.");
38 Cec.Client.Static.Lib.StandbyDevices(Device);