From 47af06578ae1c9d55444495b233eb041f1a16e22 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Mon, 9 Nov 2020 09:58:51 -0700 Subject: [PATCH] added IDeviceInfoProvider interface --- .../Device Info/DeviceInfo.cs | 7 +++++++ .../Device Info/DeviceInfoEventArgs.cs | 19 +++++++++++++++++++ .../Device Info/IDeviceInfoProvider.cs | 13 +++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/DeviceInfo.cs create mode 100644 essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/DeviceInfoEventArgs.cs create mode 100644 essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/IDeviceInfoProvider.cs diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/DeviceInfo.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/DeviceInfo.cs new file mode 100644 index 00000000..1b235ed2 --- /dev/null +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/DeviceInfo.cs @@ -0,0 +1,7 @@ +namespace PepperDash.Essentials.Core.DeviceInfo +{ + public class DeviceInfo + { + + } +} \ No newline at end of file diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/DeviceInfoEventArgs.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/DeviceInfoEventArgs.cs new file mode 100644 index 00000000..6727bce6 --- /dev/null +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/DeviceInfoEventArgs.cs @@ -0,0 +1,19 @@ +using System; + +namespace PepperDash.Essentials.Core.DeviceInfo +{ + public class DeviceInfoEventArgs:EventArgs + { + public DeviceInfo DeviceInfo { get; set; } + + public DeviceInfoEventArgs() + { + + } + + public DeviceInfoEventArgs(DeviceInfo devInfo) + { + DeviceInfo = devInfo; + } + } +} \ No newline at end of file diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/IDeviceInfoProvider.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/IDeviceInfoProvider.cs new file mode 100644 index 00000000..081fb46a --- /dev/null +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Device Info/IDeviceInfoProvider.cs @@ -0,0 +1,13 @@ +using System; + +namespace PepperDash.Essentials.Core.DeviceInfo +{ + public interface IDeviceInfoProvider + { + DeviceInfo DeviceInfo { get; } + + event EventHandler DeviceInfoChanged; + + void UpdateDeviceInfo(); + } +} \ No newline at end of file