reorganizing devices folder

This commit is contained in:
Andrew Welker
2020-06-29 12:23:05 -06:00
parent a059b2fd5b
commit 0e068f6e51
16 changed files with 18 additions and 18 deletions

View File

@@ -84,7 +84,7 @@ namespace PepperDash.Essentials.Core
{ {
Debug.Console(2, "Getting Description Attribute from class: '{0}'", typeof(T).FullName); Debug.Console(2, "Getting Description Attribute from class: '{0}'", typeof(T).FullName);
var descriptionAttribute = typeof(T).GetCustomAttributes(typeof(DescriptionAttribute), true) as DescriptionAttribute[]; var descriptionAttribute = typeof(T).GetCustomAttributes(typeof(DescriptionAttribute), true) as DescriptionAttribute[];
string description = descriptionAttribute[0].Description; string description = descriptionAttribute[0].Description;
var snippetAttribute = typeof(T).GetCustomAttributes(typeof(ConfigSnippetAttribute), true) as ConfigSnippetAttribute[]; var snippetAttribute = typeof(T).GetCustomAttributes(typeof(ConfigSnippetAttribute), true) as ConfigSnippetAttribute[];
DeviceFactory.AddFactoryForType(typeName.ToLower(), description, typeof(T), BuildDevice); DeviceFactory.AddFactoryForType(typeName.ToLower(), description, typeof(T), BuildDevice);
} }

View File

@@ -2,21 +2,21 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using Crestron.SimplSharp; using Crestron.SimplSharp;
namespace PepperDash.Essentials.Core namespace PepperDash.Essentials.Core
{ {
public interface IBasicVideoMute public interface IBasicVideoMute
{ {
void VideoMuteToggle(); void VideoMuteToggle();
} }
public interface IBasicVideoMuteWithFeedback : IBasicVideoMute public interface IBasicVideoMuteWithFeedback : IBasicVideoMute
{ {
BoolFeedback VideoMuteIsOn { get; } BoolFeedback VideoMuteIsOn { get; }
void VideoMuteOn(); void VideoMuteOn();
void VideoMuteOff(); void VideoMuteOff();
} }
} }