From 42833e13c1fcf3216a4a2a9f625c0f3b55802cd4 Mon Sep 17 00:00:00 2001 From: jdevito Date: Tue, 1 Oct 2024 14:30:09 -0500 Subject: [PATCH] refactor: adjust namesspace and assemblyname --- src/ICommandBuilder.cs | 2 +- src/IpCommandBuilder.cs | 2 +- src/PanasonicInput.cs | 186 +++++++++--------- src/PanasonicIpStatusMonitor.cs | 2 +- src/PanasonicProjectorConfig.cs | 2 +- src/PanasonicProjectorController.cs | 2 +- src/PanasonicProjectorFactory.cs | 2 +- src/QueueMessage.cs | 2 +- src/SerialCommandBuilder.cs | 2 +- src/eInputTypes.cs | 2 +- ...display-panasonic-projector.4Series.csproj | 4 +- src/epi-display-panasonic-projector.csproj | 2 +- 12 files changed, 105 insertions(+), 105 deletions(-) diff --git a/src/ICommandBuilder.cs b/src/ICommandBuilder.cs index 3712c23..8d9c5c4 100644 --- a/src/ICommandBuilder.cs +++ b/src/ICommandBuilder.cs @@ -1,4 +1,4 @@ -namespace PepperDash.Essentials.Plugins.Display.Panasonic.Projector +namespace PanasonicProjectorEpi { public interface ICommandBuilder { diff --git a/src/IpCommandBuilder.cs b/src/IpCommandBuilder.cs index eaa0c93..c29beaf 100644 --- a/src/IpCommandBuilder.cs +++ b/src/IpCommandBuilder.cs @@ -1,6 +1,6 @@ using System; -namespace PepperDash.Essentials.Plugins.Display.Panasonic.Projector +namespace PanasonicProjectorEpi { public class IpCommandBuilder:ICommandBuilder { diff --git a/src/PanasonicInput.cs b/src/PanasonicInput.cs index 7ac1481..66c938e 100644 --- a/src/PanasonicInput.cs +++ b/src/PanasonicInput.cs @@ -1,95 +1,95 @@ -using PepperDash.Essentials.Core.DeviceTypeInterfaces; -using System; -using System.Collections.Generic; - -namespace PepperDash.Essentials.Plugins.Display.Panasonic.Projector +using PepperDash.Essentials.Core.DeviceTypeInterfaces; +using System; +using System.Collections.Generic; + +namespace PanasonicProjectorEpi { -#if SERIES4 - public class PanasonicInputs : ISelectableItems - { - private Dictionary _items = new Dictionary(); - - public Dictionary Items - { - get - { - return _items; - } - set - { - if (_items == value) - return; - - _items = value; - - ItemsUpdated?.Invoke(this, null); - } - } - - private byte _currentItem; - - public byte CurrentItem - { - get - { - return _currentItem; - } - set - { - if (_currentItem == value) - return; - - _currentItem = value; - - CurrentItemChanged?.Invoke(this, null); - } - } - - public event EventHandler ItemsUpdated; - public event EventHandler CurrentItemChanged; - - } - - public class PanasonicInput : ISelectableItem - { - private bool _isSelected; - - private readonly PanasonicProjectorController _parent; - - private Action _inputMethod; - - public PanasonicInput(string key, string name, PanasonicProjectorController parent, Action inputMethod) - { - Key = key; - Name = name; - _parent = parent; - _inputMethod = inputMethod; - } - - public string Key { get; private set; } - public string Name { get; private set; } - - public event EventHandler ItemUpdated; - - public bool IsSelected - { - get { return _isSelected; } - set - { - if (value == _isSelected) - return; - - _isSelected = value; - var handler = ItemUpdated; - if (handler != null) - handler(this, EventArgs.Empty); - } - } - - public void Select() - { - _inputMethod(); - } - } -#endif +#if SERIES4 + public class PanasonicInputs : ISelectableItems + { + private Dictionary _items = new Dictionary(); + + public Dictionary Items + { + get + { + return _items; + } + set + { + if (_items == value) + return; + + _items = value; + + ItemsUpdated?.Invoke(this, null); + } + } + + private byte _currentItem; + + public byte CurrentItem + { + get + { + return _currentItem; + } + set + { + if (_currentItem == value) + return; + + _currentItem = value; + + CurrentItemChanged?.Invoke(this, null); + } + } + + public event EventHandler ItemsUpdated; + public event EventHandler CurrentItemChanged; + + } + + public class PanasonicInput : ISelectableItem + { + private bool _isSelected; + + private readonly PanasonicProjectorController _parent; + + private Action _inputMethod; + + public PanasonicInput(string key, string name, PanasonicProjectorController parent, Action inputMethod) + { + Key = key; + Name = name; + _parent = parent; + _inputMethod = inputMethod; + } + + public string Key { get; private set; } + public string Name { get; private set; } + + public event EventHandler ItemUpdated; + + public bool IsSelected + { + get { return _isSelected; } + set + { + if (value == _isSelected) + return; + + _isSelected = value; + var handler = ItemUpdated; + if (handler != null) + handler(this, EventArgs.Empty); + } + } + + public void Select() + { + _inputMethod(); + } + } +#endif } \ No newline at end of file diff --git a/src/PanasonicIpStatusMonitor.cs b/src/PanasonicIpStatusMonitor.cs index 8f54fdc..6674efb 100644 --- a/src/PanasonicIpStatusMonitor.cs +++ b/src/PanasonicIpStatusMonitor.cs @@ -1,7 +1,7 @@ using PepperDash.Core; using PepperDash.Essentials.Core; -namespace PepperDash.Essentials.Plugins.Display.Panasonic.Projector +namespace PanasonicProjectorEpi { public class PanasonicStatusMonitor : StatusMonitorBase { diff --git a/src/PanasonicProjectorConfig.cs b/src/PanasonicProjectorConfig.cs index 388a26e..78679d9 100644 --- a/src/PanasonicProjectorConfig.cs +++ b/src/PanasonicProjectorConfig.cs @@ -1,7 +1,7 @@ using Newtonsoft.Json; using PepperDash.Essentials.Core; -namespace PepperDash.Essentials.Plugins.Display.Panasonic.Projector +namespace PanasonicProjectorEpi { /// /// Plugin device configuration object diff --git a/src/PanasonicProjectorController.cs b/src/PanasonicProjectorController.cs index 6ccb300..a3d04f7 100644 --- a/src/PanasonicProjectorController.cs +++ b/src/PanasonicProjectorController.cs @@ -16,7 +16,7 @@ using PepperDash.Essentials.Core.Routing; #endif -namespace PepperDash.Essentials.Plugins.Display.Panasonic.Projector +namespace PanasonicProjectorEpi { /// /// Plugin device template for third party devices that use IBasicCommunication diff --git a/src/PanasonicProjectorFactory.cs b/src/PanasonicProjectorFactory.cs index a1b17ac..7c998ce 100644 --- a/src/PanasonicProjectorFactory.cs +++ b/src/PanasonicProjectorFactory.cs @@ -3,7 +3,7 @@ using PepperDash.Essentials.Core.Config; using System.Collections.Generic; -namespace PepperDash.Essentials.Plugins.Display.Panasonic.Projector +namespace PanasonicProjectorEpi { /// /// Plugin device factory for devices that use IBasicCommunication diff --git a/src/QueueMessage.cs b/src/QueueMessage.cs index 3f37ba5..af9edc5 100644 --- a/src/QueueMessage.cs +++ b/src/QueueMessage.cs @@ -1,7 +1,7 @@ using System; using PepperDash.Essentials.Core.Queues; -namespace PepperDash.Essentials.Plugins.Display.Panasonic.Projector +namespace PanasonicProjectorEpi { public class QueueMessage : IQueueMessage { diff --git a/src/SerialCommandBuilder.cs b/src/SerialCommandBuilder.cs index 404ee25..fdee4e0 100644 --- a/src/SerialCommandBuilder.cs +++ b/src/SerialCommandBuilder.cs @@ -1,6 +1,6 @@ using System; -namespace PepperDash.Essentials.Plugins.Display.Panasonic.Projector +namespace PanasonicProjectorEpi { public class SerialCommandBuilder : ICommandBuilder { diff --git a/src/eInputTypes.cs b/src/eInputTypes.cs index 64d1159..b05068d 100644 --- a/src/eInputTypes.cs +++ b/src/eInputTypes.cs @@ -1,4 +1,4 @@ -namespace PepperDash.Essentials.Plugins.Display.Panasonic.Projector +namespace PanasonicProjectorEpi { public enum eInputTypes { diff --git a/src/epi-display-panasonic-projector.4Series.csproj b/src/epi-display-panasonic-projector.4Series.csproj index fd5dbb3..0dcf214 100644 --- a/src/epi-display-panasonic-projector.4Series.csproj +++ b/src/epi-display-panasonic-projector.4Series.csproj @@ -6,9 +6,9 @@ net472 - Pepperdash.Essentials.Plugins.Display.Panasonic.Projector + PanasonicProjectorEpi false - EPI.Panasonic.Projector + PepperDash.Essentials.Plugin.PanasonicProjector PepperDash Technologies This software is a plugin designed to work as a part of PepperDash Essentials for Crestron control processors. This plugin allows for control of Panasonic Projectors. Copyright 2024 diff --git a/src/epi-display-panasonic-projector.csproj b/src/epi-display-panasonic-projector.csproj index 79eb5e8..514b1e1 100644 --- a/src/epi-display-panasonic-projector.csproj +++ b/src/epi-display-panasonic-projector.csproj @@ -7,7 +7,7 @@ {B986CEE5-DAC4-40BF-BCFE-0C2CA83350FE} Library Properties - PepperDash.Essentials + PanasonicProjectorEpi PepperDash.Essentials.Plugin.PanasonicProjector {0B4745B0-194B-4BB6-8E21-E9057CA92300};{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} WindowsCE