From 2755377a179c124f4b9d83341e57394ed4a437ad Mon Sep 17 00:00:00 2001 From: Nick Genovese Date: Thu, 31 Oct 2024 08:29:25 -0400 Subject: [PATCH] chore: moved some core interfaces into their own files --- src/Pepperdash.Core/CoreInterfaces.cs | 32 --------------------------- src/Pepperdash.Core/IKeyName.cs | 15 +++++++++++++ src/Pepperdash.Core/IKeyed.cs | 14 ++++++++++++ 3 files changed, 29 insertions(+), 32 deletions(-) delete mode 100644 src/Pepperdash.Core/CoreInterfaces.cs create mode 100644 src/Pepperdash.Core/IKeyName.cs create mode 100644 src/Pepperdash.Core/IKeyed.cs diff --git a/src/Pepperdash.Core/CoreInterfaces.cs b/src/Pepperdash.Core/CoreInterfaces.cs deleted file mode 100644 index c1432c2..0000000 --- a/src/Pepperdash.Core/CoreInterfaces.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Crestron.SimplSharp; -using Serilog; - -namespace PepperDash.Core -{ - /// - /// Unique key interface to require a unique key for the class - /// - public interface IKeyed - { - /// - /// Unique Key - /// - string Key { get; } - } - - /// - /// Named Keyed device interface. Forces the device to have a Unique Key and a name. - /// - public interface IKeyName : IKeyed - { - /// - /// Isn't it obvious :) - /// - string Name { get; } - } - -} \ No newline at end of file diff --git a/src/Pepperdash.Core/IKeyName.cs b/src/Pepperdash.Core/IKeyName.cs new file mode 100644 index 0000000..21569a0 --- /dev/null +++ b/src/Pepperdash.Core/IKeyName.cs @@ -0,0 +1,15 @@ +namespace PepperDash.Core +{ + + /// + /// Named Keyed device interface. Forces the device to have a Unique Key and a name. + /// + public interface IKeyName : IKeyed + { + /// + /// Isn't it obvious :) + /// + string Name { get; } + } + +} \ No newline at end of file diff --git a/src/Pepperdash.Core/IKeyed.cs b/src/Pepperdash.Core/IKeyed.cs new file mode 100644 index 0000000..383cbdf --- /dev/null +++ b/src/Pepperdash.Core/IKeyed.cs @@ -0,0 +1,14 @@ +namespace PepperDash.Core +{ + /// + /// Unique key interface to require a unique key for the class + /// + public interface IKeyed + { + /// + /// Unique Key + /// + string Key { get; } + } + +} \ No newline at end of file