1.1 --- a/Server/Actions/ActionCecDevice.cs Tue Jul 26 15:30:46 2016 +0200
1.2 +++ b/Server/Actions/ActionCecDevice.cs Wed Jul 27 11:07:35 2016 +0200
1.3 @@ -10,6 +10,9 @@
1.4
1.5 namespace SharpDisplayManager
1.6 {
1.7 + /// <summary>
1.8 + /// Abstract CEC action using a device logical address.
1.9 + /// </summary>
1.10 [DataContract]
1.11 public abstract class ActionCecDevice: SharpLib.Ear.Action
1.12 {
1.13 @@ -22,5 +25,22 @@
1.14 )
1.15 ]
1.16 public CecLogicalAddress Device { get; set; }
1.17 +
1.18 + /// <summary>
1.19 + ///
1.20 + /// </summary>
1.21 + public string DeviceName {
1.22 + get
1.23 + {
1.24 + if (Device == CecLogicalAddress.Broadcast)
1.25 + {
1.26 + //Because of duplicate value in enumeration
1.27 + return "Broadcast";
1.28 + }
1.29 +
1.30 + return Device.ToString();
1.31 + }
1.32 + }
1.33 +
1.34 }
1.35 }