Updated class names to not use VC abbreviation. Defined additional interfaces

This commit is contained in:
Neil Dorin
2017-09-06 08:52:53 -06:00
parent 617e2bdc4f
commit 0d071e6e82
4 changed files with 21 additions and 10 deletions

View File

@@ -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; }
}
}

View File

@@ -104,6 +104,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Devices\IHasDialer.cs" /> <Compile Include="Devices\IHasDialer.cs" />
<Compile Include="Devices\IHasSharing.cs" />
<Compile Include="Ramps and Increments\ActionIncrementer.cs" /> <Compile Include="Ramps and Increments\ActionIncrementer.cs" />
<Compile Include="Comm and IR\CommFactory.cs" /> <Compile Include="Comm and IR\CommFactory.cs" />
<Compile Include="Comm and IR\CommunicationExtras.cs" /> <Compile Include="Comm and IR\CommunicationExtras.cs" />

View File

@@ -6,9 +6,9 @@ using Crestron.SimplSharp;
using Cisco_One_Button_To_Push; using Cisco_One_Button_To_Push;
using Cisco_SX80_Corporate_Phone_Book; 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; private CiscoOneButtonToPush Codec;
@@ -24,12 +24,8 @@ namespace PepperDash.Essentials.Devices.VC
Codec.Initialize(); Codec.Initialize();
Codec.GetMeetings(); Codec.GetMeetings();
} }
public override void ExecuteSwitch(object selector) public override void ExecuteSwitch(object selector)
{ {
throw new NotImplementedException(); throw new NotImplementedException();

View File

@@ -7,9 +7,9 @@ using Crestron.SimplSharp;
using PepperDash.Core; using PepperDash.Core;
using PepperDash.Essentials.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 #region IUsageTracking Members
@@ -30,7 +30,7 @@ namespace PepperDash.Essentials.Devices.VC
abstract protected Func<bool> ReceiveMuteFeedbackFunc { get; } abstract protected Func<bool> ReceiveMuteFeedbackFunc { get; }
abstract protected Func<bool> PrivacyModeFeedbackFunc { get; } abstract protected Func<bool> PrivacyModeFeedbackFunc { get; }
public VcCodecBase(string key, string name) public VideoCodecBase(string key, string name)
: base(key, name) : base(key, name)
{ {
InCallFeedback = new BoolFeedback(InCallFeedbackFunc); InCallFeedback = new BoolFeedback(InCallFeedbackFunc);