diff --git a/src/PepperDash.Core/Device.cs b/src/PepperDash.Core/Device.cs index 7124550e..58b5fe3e 100644 --- a/src/PepperDash.Core/Device.cs +++ b/src/PepperDash.Core/Device.cs @@ -5,9 +5,9 @@ using Serilog.Events; namespace PepperDash.Core { //********************************************************************************************************* - /// - /// Represents a Device - /// + /// + /// Represents a Device + /// public class Device : IKeyName { @@ -15,25 +15,15 @@ namespace PepperDash.Core /// Unique Key /// public string Key { get; protected set; } - /// - /// Gets or sets the Name - /// + /// + /// Gets or sets the Name + /// public string Name { get; protected set; } /// /// /// public bool Enabled { get; protected set; } - /// - /// A place to store reference to the original config object, if any. These values should - /// NOT be used as properties on the device as they are all publicly-settable values. - /// - //public DeviceConfig Config { get; private set; } - /// - /// Helper method to check if Config exists - /// - //public bool HasConfig { get { return Config != null; } } - List _PreActivationActions; List _PostActivationActions; @@ -86,9 +76,9 @@ namespace PepperDash.Core /// Adds a post activation action /// /// - /// - /// AddPostActivationAction method - /// + /// + /// AddPostActivationAction method + /// public void AddPostActivationAction(Action act) { if (_PostActivationActions == null) @@ -96,9 +86,9 @@ namespace PepperDash.Core _PostActivationActions.Add(act); } - /// - /// PreActivate method - /// + /// + /// PreActivate method + /// public void PreActivate() { if (_PreActivationActions != null) @@ -115,9 +105,9 @@ namespace PepperDash.Core }); } - /// - /// Activate method - /// + /// + /// Activate method + /// public bool Activate() { //if (_PreActivationActions != null) @@ -128,9 +118,9 @@ namespace PepperDash.Core return result; } - /// - /// PostActivate method - /// + /// + /// PostActivate method + /// public void PostActivate() { if (_PostActivationActions != null) @@ -153,9 +143,9 @@ namespace PepperDash.Core /// do not need to call base.CustomActivate() /// /// true if device activated successfully. - /// - /// CustomActivate method - /// + /// + /// CustomActivate method + /// public virtual bool CustomActivate() { return true; } /// @@ -182,15 +172,15 @@ namespace PepperDash.Core if (o is bool && !(bool)o) a(); } - /// - /// Returns a string representation of the object, including its key and name. - /// - /// The returned string is formatted as "{Key} - {Name}". If the Name property is - /// null or empty, "---" is used in place of the name. - /// A string that represents the object, containing the key and name in the format "{Key} - {Name}". - /// - /// ToString method - /// + /// + /// Returns a string representation of the object, including its key and name. + /// + /// The returned string is formatted as "{Key} - {Name}". If the Name property is + /// null or empty, "---" is used in place of the name. + /// A string that represents the object, containing the key and name in the format "{Key} - {Name}". + /// + /// ToString method + /// public override string ToString() { return string.Format("{0} - {1}", Key, string.IsNullOrEmpty(Name) ? "---" : Name);