From ee7e5f15485760a1cf2804769be76d0352ab85dc Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Fri, 23 Jul 2021 14:46:32 -0600 Subject: [PATCH] feat: Add Initialize method This method is to be used for starting communications with a device, or other actions that aren't internal to the program. --- Pepperdash Core/Pepperdash Core/Device.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Pepperdash Core/Pepperdash Core/Device.cs b/Pepperdash Core/Pepperdash Core/Device.cs index 62dc6b1..bfbe359 100644 --- a/Pepperdash Core/Pepperdash Core/Device.cs +++ b/Pepperdash Core/Pepperdash Core/Device.cs @@ -119,7 +119,14 @@ namespace PepperDash.Core /// public virtual bool Deactivate() { return true; } - /// + /// + /// Call this method to start communications with a device. Overriding classes do not need to call base.Initialize() + /// + public virtual void Initialize() + { + } + + /// /// Helper method to check object for bool value false and fire an Action method /// /// Should be of type bool, others will be ignored