From 0d071e6e8282f376c94a4a2924c7a81d0ac5c489 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Wed, 6 Sep 2017 08:52:53 -0600 Subject: [PATCH] Updated class names to not use VC abbreviation. Defined additional interfaces --- .../Devices/IHasSharing.cs | 14 ++++++++++++++ .../PepperDash_Essentials_Core.csproj | 1 + .../Essentials Devices Common/VC/CiscoCodec.cs | 10 +++------- .../VC/{VcCodecBase.cs => VideoCodecBase.cs} | 6 +++--- 4 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 Essentials Core/PepperDashEssentialsBase/Devices/IHasSharing.cs rename Essentials Devices Common/Essentials Devices Common/VC/{VcCodecBase.cs => VideoCodecBase.cs} (90%) diff --git a/Essentials Core/PepperDashEssentialsBase/Devices/IHasSharing.cs b/Essentials Core/PepperDashEssentialsBase/Devices/IHasSharing.cs new file mode 100644 index 00000000..2266b919 --- /dev/null +++ b/Essentials Core/PepperDashEssentialsBase/Devices/IHasSharing.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Crestron.SimplSharp; + +namespace PepperDash.Essentials.Core +{ + public interface IHasSharing + { + + BoolFeedback SharingSourceFeedback { get; } + } +} \ No newline at end of file diff --git a/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj b/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj index b7649ac6..e06834ec 100644 --- a/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj +++ b/Essentials Core/PepperDashEssentialsBase/PepperDash_Essentials_Core.csproj @@ -104,6 +104,7 @@ + diff --git a/Essentials Devices Common/Essentials Devices Common/VC/CiscoCodec.cs b/Essentials Devices Common/Essentials Devices Common/VC/CiscoCodec.cs index 74ec8dfd..cf13ff1e 100644 --- a/Essentials Devices Common/Essentials Devices Common/VC/CiscoCodec.cs +++ b/Essentials Devices Common/Essentials Devices Common/VC/CiscoCodec.cs @@ -6,9 +6,9 @@ using Crestron.SimplSharp; using Cisco_One_Button_To_Push; using Cisco_SX80_Corporate_Phone_Book; -namespace PepperDash.Essentials.Devices.VC +namespace PepperDash.Essentials.Devices.VideoCodec { - public class CiscoCodec : VcCodecBase + public class CiscoCodec : VideoCodecBase { private CiscoOneButtonToPush Codec; @@ -23,13 +23,9 @@ namespace PepperDash.Essentials.Devices.VC Codec.Initialize(); - Codec.GetMeetings(); - - + Codec.GetMeetings(); } - - public override void ExecuteSwitch(object selector) { throw new NotImplementedException(); diff --git a/Essentials Devices Common/Essentials Devices Common/VC/VcCodecBase.cs b/Essentials Devices Common/Essentials Devices Common/VC/VideoCodecBase.cs similarity index 90% rename from Essentials Devices Common/Essentials Devices Common/VC/VcCodecBase.cs rename to Essentials Devices Common/Essentials Devices Common/VC/VideoCodecBase.cs index bf61aa00..6bd4c548 100644 --- a/Essentials Devices Common/Essentials Devices Common/VC/VcCodecBase.cs +++ b/Essentials Devices Common/Essentials Devices Common/VC/VideoCodecBase.cs @@ -7,9 +7,9 @@ using Crestron.SimplSharp; using PepperDash.Core; using PepperDash.Essentials.Core; -namespace PepperDash.Essentials.Devices.VC +namespace PepperDash.Essentials.Devices.VideoCodec { - public abstract class VcCodecBase : Device, IHasFeedback, IRoutingSinkWithSwitching, IUsageTracking, IHasDialer//, ICodecAudio + public abstract class VideoCodecBase : Device, IRoutingSinkWithSwitching, IUsageTracking, IHasDialer //, ICodecAudio { #region IUsageTracking Members @@ -30,7 +30,7 @@ namespace PepperDash.Essentials.Devices.VC abstract protected Func ReceiveMuteFeedbackFunc { get; } abstract protected Func PrivacyModeFeedbackFunc { get; } - public VcCodecBase(string key, string name) + public VideoCodecBase(string key, string name) : base(key, name) { InCallFeedback = new BoolFeedback(InCallFeedbackFunc);