From 43989b9588e013e15e0c36e2fcb586d23e4f17cb Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Fri, 25 Jul 2025 09:12:09 -0500 Subject: [PATCH] chore: move interfaces to their own files --- .../Devices/FIND HOMES Interfaces.cs | 35 ------------------- .../Devices/IAttachVideoStatus.cs | 13 +++++++ .../Devices/IDisplayUsage.cs | 10 ++++++ .../Devices/IMakeModel.cs | 22 ++++++++++++ .../Devices/IOnline.cs | 13 +++++++ 5 files changed, 58 insertions(+), 35 deletions(-) delete mode 100644 src/PepperDash.Essentials.Core/Devices/FIND HOMES Interfaces.cs create mode 100644 src/PepperDash.Essentials.Core/Devices/IAttachVideoStatus.cs create mode 100644 src/PepperDash.Essentials.Core/Devices/IDisplayUsage.cs create mode 100644 src/PepperDash.Essentials.Core/Devices/IMakeModel.cs create mode 100644 src/PepperDash.Essentials.Core/Devices/IOnline.cs diff --git a/src/PepperDash.Essentials.Core/Devices/FIND HOMES Interfaces.cs b/src/PepperDash.Essentials.Core/Devices/FIND HOMES Interfaces.cs deleted file mode 100644 index 44b36134..00000000 --- a/src/PepperDash.Essentials.Core/Devices/FIND HOMES Interfaces.cs +++ /dev/null @@ -1,35 +0,0 @@ -using PepperDash.Core; - - -namespace PepperDash.Essentials.Core -{ - /// - /// Defines the contract for IOnline - /// - public interface IOnline - { - BoolFeedback IsOnline { get; } - } - - /// - /// Defines the contract for IAttachVideoStatus - /// - public interface IAttachVideoStatus : IKeyed - { - // Extension methods will depend on this - } - - /// - /// For display classes that can provide usage data - /// - public interface IDisplayUsage - { - IntFeedback LampHours { get; } - } - - public interface IMakeModel : IKeyed - { - string DeviceMake { get; } - string DeviceModel { get; } - } -} \ No newline at end of file diff --git a/src/PepperDash.Essentials.Core/Devices/IAttachVideoStatus.cs b/src/PepperDash.Essentials.Core/Devices/IAttachVideoStatus.cs new file mode 100644 index 00000000..4b9b36ca --- /dev/null +++ b/src/PepperDash.Essentials.Core/Devices/IAttachVideoStatus.cs @@ -0,0 +1,13 @@ +using PepperDash.Core; + + +namespace PepperDash.Essentials.Core +{ + /// + /// Defines the contract for IAttachVideoStatus + /// + public interface IAttachVideoStatus : IKeyed + { + // Extension methods will depend on this + } +} \ No newline at end of file diff --git a/src/PepperDash.Essentials.Core/Devices/IDisplayUsage.cs b/src/PepperDash.Essentials.Core/Devices/IDisplayUsage.cs new file mode 100644 index 00000000..0d74d819 --- /dev/null +++ b/src/PepperDash.Essentials.Core/Devices/IDisplayUsage.cs @@ -0,0 +1,10 @@ +namespace PepperDash.Essentials.Core +{ + /// + /// For display classes that can provide usage data + /// + public interface IDisplayUsage + { + IntFeedback LampHours { get; } + } +} \ No newline at end of file diff --git a/src/PepperDash.Essentials.Core/Devices/IMakeModel.cs b/src/PepperDash.Essentials.Core/Devices/IMakeModel.cs new file mode 100644 index 00000000..494c9af3 --- /dev/null +++ b/src/PepperDash.Essentials.Core/Devices/IMakeModel.cs @@ -0,0 +1,22 @@ +using PepperDash.Core; + + +namespace PepperDash.Essentials.Core +{ + + /// + /// Defines the contract for device make and model information + /// + public interface IMakeModel : IKeyed + { + /// + /// Gets the make of the device + /// + string DeviceMake { get; } + + /// + /// Gets the model of the device + /// + string DeviceModel { get; } + } +} \ No newline at end of file diff --git a/src/PepperDash.Essentials.Core/Devices/IOnline.cs b/src/PepperDash.Essentials.Core/Devices/IOnline.cs new file mode 100644 index 00000000..8c86a480 --- /dev/null +++ b/src/PepperDash.Essentials.Core/Devices/IOnline.cs @@ -0,0 +1,13 @@ +namespace PepperDash.Essentials.Core +{ + /// + /// Defines the contract for IOnline + /// + public interface IOnline + { + /// + /// Gets a value indicating whether the device is online. + /// + BoolFeedback IsOnline { get; } + } +} \ No newline at end of file