diff --git a/src/PepperDash.Essentials.Core/Bridges/JoinMaps/DigitalLoggerJoinMap.cs b/src/PepperDash.Essentials.Core/Bridges/JoinMaps/DigitalLoggerJoinMap.cs
deleted file mode 100644
index 7959a511..00000000
--- a/src/PepperDash.Essentials.Core/Bridges/JoinMaps/DigitalLoggerJoinMap.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-using System;
-
-namespace PepperDash.Essentials.Core.Bridges
-{
- [Obsolete("This Device will be moved to a plugin in a future update")]
- public class DigitalLoggerJoinMap : JoinMapBase
- {
- public uint IsOnline { get; set; }
- public uint CircuitNames { get; set; }
- public uint CircuitState { get; set; }
- public uint CircuitCycle { get; set; }
- public uint CircuitIsCritical { get; set; }
- public uint CircuitOnCmd { get; set; }
- public uint CircuitOffCmd { get; set; }
-
- public DigitalLoggerJoinMap()
- {
- // Digital
- IsOnline = 9;
- CircuitState = 0;
- CircuitCycle = 0;
- CircuitIsCritical = 10;
- CircuitOnCmd = 10;
- CircuitOffCmd = 20;
- // Serial
- CircuitNames = 0;
- // Analog
- }
-
- public override void OffsetJoinNumbers(uint joinStart)
- {
- var joinOffset = joinStart - 1;
-
- IsOnline = IsOnline + joinOffset;
- CircuitNames = CircuitNames + joinOffset;
- CircuitState = CircuitState + joinOffset;
- CircuitCycle = CircuitCycle + joinOffset;
- CircuitIsCritical = CircuitIsCritical + joinOffset;
- CircuitOnCmd = CircuitOnCmd + joinOffset;
- CircuitOffCmd = CircuitOffCmd + joinOffset;
- }
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/Bridges/JoinMaps/GlsPartitionSensorJoinMap.cs b/src/PepperDash.Essentials.Core/Bridges/JoinMaps/GlsPartitionSensorJoinMap.cs
index 0ee3d049..cb0f07b2 100644
--- a/src/PepperDash.Essentials.Core/Bridges/JoinMaps/GlsPartitionSensorJoinMap.cs
+++ b/src/PepperDash.Essentials.Core/Bridges/JoinMaps/GlsPartitionSensorJoinMap.cs
@@ -155,146 +155,3 @@ namespace PepperDash.Essentials.Core.Bridges.JoinMaps
}
}
}
-
-namespace PepperDash_Essentials_Core.Bridges.JoinMaps
-{
- ///
- ///
- ///
- [Obsolete("use PepperDash.Essentials.Core.Bridges.JoinMaps version")]
- public class GlsPartitionSensorJoinMap:JoinMapBaseAdvanced
- {
- [JoinName("IsOnline")]
- public JoinDataComplete IsOnline = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 1,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Sensor Is Online",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("Name")]
- public JoinDataComplete Name = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 1,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Sensor Name",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("Enable")]
- public JoinDataComplete Enable = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 2,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Sensor Enable",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("PartitionSensed")]
- public JoinDataComplete PartitionSensed = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 3,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Sensor Partition Sensed",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("PartitionNotSensed")]
- public JoinDataComplete PartitionNotSensed = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 4,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Sensor Partition Not Sensed",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("IncreaseSensitivity")]
- public JoinDataComplete IncreaseSensitivity = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 6,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Sensor Increase Sensitivity",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DecreaseSensitivity")]
- public JoinDataComplete DecreaseSensitivity = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 7,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Sensor Decrease Sensitivity",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("Sensitivity")]
- public JoinDataComplete Sensitivity = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 2,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Sensor Sensitivity",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Analog
- });
-
- ///
- /// Constructor to use when instantiating this Join Map without inheriting from it
- ///
- /// Join this join map will start at
- public GlsPartitionSensorJoinMap(uint joinStart)
- : this(joinStart, typeof(GlsPartitionSensorJoinMap))
- {
-
- }
-
- ///
- /// Constructor to use when extending this Join map
- ///
- /// Join this join map will start at
- /// Type of the child join map
- protected GlsPartitionSensorJoinMap(uint joinStart, Type type)
- : base(joinStart, type)
- {
-
- }
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/Bridges/JoinMaps/VideoCodecControllerJoinMap.cs b/src/PepperDash.Essentials.Core/Bridges/JoinMaps/VideoCodecControllerJoinMap.cs
index 74131e2b..755a586e 100644
--- a/src/PepperDash.Essentials.Core/Bridges/JoinMaps/VideoCodecControllerJoinMap.cs
+++ b/src/PepperDash.Essentials.Core/Bridges/JoinMaps/VideoCodecControllerJoinMap.cs
@@ -1849,1330 +1849,3 @@ namespace PepperDash.Essentials.Core.Bridges.JoinMaps
}
}
}
-
-
-namespace PepperDash_Essentials_Core.Bridges.JoinMaps
-{
- [Obsolete("Use PepperDash.Essentials.Core.Bridges.JoinMaps")]
- public class VideoCodecControllerJoinMap : JoinMapBaseAdvanced
- {
-
- #region Digital
-
- [JoinName("IsOnline")]
- public JoinDataComplete IsOnline = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 1,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Device is Online",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("1")]
- public JoinDataComplete Dtmf1 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 11,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF 1",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("2")]
- public JoinDataComplete Dtmf2 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 12,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF 2",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("3")]
- public JoinDataComplete Dtmf3 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 13,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF 3",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("4")]
- public JoinDataComplete Dtmf4 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 14,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF 4",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("5")]
- public JoinDataComplete Dtmf5 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 15,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF 5",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("6")]
- public JoinDataComplete Dtmf6 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 16,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF 6",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("7")]
- public JoinDataComplete Dtmf7 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 17,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF 7",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("8")]
- public JoinDataComplete Dtmf8 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 18,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF 8",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("9")]
- public JoinDataComplete Dtmf9 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 19,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF 9",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("0")]
- public JoinDataComplete Dtmf0 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 20,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF 0",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("*")]
- public JoinDataComplete DtmfStar = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 21,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF *",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("#")]
- public JoinDataComplete DtmfPound = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 22,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "DTMF #",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("EndCall")]
- public JoinDataComplete EndCall = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 24,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Hang Up",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("HookState")]
- public JoinDataComplete HookState = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 31,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Current Hook State",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("SpeedDialStart")]
- public JoinDataComplete SpeedDialStart = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 41,
- JoinSpan = 4
- },
- new JoinMetadata
- {
- Description = "Speed Dial",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("IncomingCall")]
- public JoinDataComplete IncomingCall = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 50,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Incoming Call",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("IncomingAnswer")]
- public JoinDataComplete IncomingAnswer = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 51,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Answer Incoming Call",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("IncomingReject")]
- public JoinDataComplete IncomingReject = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 52,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Reject Incoming Call",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("ManualDial")]
- public JoinDataComplete ManualDial = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 71,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Dial manual string",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DialPhoneCall")]
- public JoinDataComplete DialPhone = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 72,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Dial Phone",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("PhoneHookState")]
- public JoinDataComplete PhoneHookState = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 72,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Dial Phone",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("EndPhoneCall")]
- public JoinDataComplete HangUpPhone = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 73,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Hang Up PHone",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DirectorySearchBusy")]
- public JoinDataComplete DirectorySearchBusy = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 100,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Directory Search Busy FB",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DirectoryEntryIsContact")]
- public JoinDataComplete DirectoryEntryIsContact = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 101,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Directory Selected Entry Is Contact FB",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DirectoryLineSelected")]
- public JoinDataComplete DirectoryLineSelected = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 101,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Directory Line Selected FB",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DirectoryIsRoot")]
- public JoinDataComplete DirectoryIsRoot = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 102,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Directory is on Root FB",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DirectoryHasChanged")]
- public JoinDataComplete DirectoryHasChanged = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 103,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Directory has changed FB",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DirectoryRoot")]
- public JoinDataComplete DirectoryRoot = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 104,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Go to Directory Root",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DirectoryFolderBack")]
- public JoinDataComplete DirectoryFolderBack = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 105,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Go back one directory level",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DirectoryDialSelectedLine")]
- public JoinDataComplete DirectoryDialSelectedLine = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 106,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Dial selected directory line",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
-
- [JoinName("CameraTiltUp")]
- public JoinDataComplete CameraTiltUp = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 111,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Tilt Up",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraTiltDown")]
- public JoinDataComplete CameraTiltDown = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 112,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Tilt Down",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraPanLeft")]
- public JoinDataComplete CameraPanLeft = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 113,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Pan Left",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraPanRight")]
- public JoinDataComplete CameraPanRight = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 114,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Pan Right",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraZoomIn")]
- public JoinDataComplete CameraZoomIn = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 115,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Zoom In",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraZoomOut")]
- public JoinDataComplete CameraZoomOut = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 116,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Zoom Out",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraPresetSave")]
- public JoinDataComplete CameraPresetSave = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 121,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Save Selected Preset",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraModeAuto")]
- public JoinDataComplete CameraModeAuto = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 131,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Mode Auto",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraModeManual")]
- public JoinDataComplete CameraModeManual = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 132,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Mode Manual",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraModeOff")]
- public JoinDataComplete CameraModeOff = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 133,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Mode Off",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraSelfView")]
- public JoinDataComplete CameraSelfView = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 141,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Self View Toggle/FB",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraLayout")]
- public JoinDataComplete CameraLayout = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 142,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Layout Toggle",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraSupportsAutoMode")]
- public JoinDataComplete CameraSupportsAutoMode = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 143,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Supports Auto Mode FB",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("CameraSupportsOffMode")]
- public JoinDataComplete CameraSupportsOffMode = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 144,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Supports Off Mode FB",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("UpdateMeetings")]
- public JoinDataComplete UpdateMeetings = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 160,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Update Meetings",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DialMeeting1")]
- public JoinDataComplete DialMeeting1 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 161,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Join first meeting",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DialMeeting2")]
- public JoinDataComplete DialMeeting2 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 162,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Join second meeting",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("DialMeeting3")]
- public JoinDataComplete DialMeeting3 = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 163,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Join third meeting",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("MicMuteOn")]
- public JoinDataComplete MicMuteOn = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 171,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Mic Mute On",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("MicMuteOff")]
- public JoinDataComplete MicMuteOff = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 172,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Mic Mute Off",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("MicMuteToggle")]
- public JoinDataComplete MicMuteToggle = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 173,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Mic Mute Toggle",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("VolumeUp")]
- public JoinDataComplete VolumeUp = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 174,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Volume Up",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("VolumeDown")]
- public JoinDataComplete VolumeDown = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 175,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Volume Down",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("VolumeMuteOn")]
- public JoinDataComplete VolumeMuteOn = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 176,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Volume Mute On",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("VolumeMuteOff")]
- public JoinDataComplete VolumeMuteOff = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 177,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Volume Mute Off",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("VolumeMuteToggle")]
- public JoinDataComplete VolumeMuteToggle = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 178,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Volume Mute Toggle",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("SourceShareStart")]
- public JoinDataComplete SourceShareStart = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 201,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Start Sharing & Feedback",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("SourceShareEnd")]
- public JoinDataComplete SourceShareEnd = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 202,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Stop Sharing & Feedback",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("AutoShareWhileInCall")]
- public JoinDataComplete SourceShareAutoStart = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 203,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "When high, will autostart sharing when a call is joined",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("RecievingContent")]
- public JoinDataComplete RecievingContent = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 204,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Recieving content from the far end",
- JoinType = eJoinType.Digital,
- JoinCapabilities = eJoinCapabilities.ToSIMPL
- });
-
- [JoinName("SelfviewPosition")]
- public JoinDataComplete SelfviewPosition = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 211,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "advance selfview position",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("ParticipantAudioMuteToggleStart")]
- public JoinDataComplete ParticipantAudioMuteToggleStart = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 500,
- JoinSpan = 50
- },
- new JoinMetadata
- {
- Description = "Toggles the participant's audio mute status",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("ParticipantVideoMuteToggleStart")]
- public JoinDataComplete ParticipantVideoMuteToggleStart = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 800,
- JoinSpan = 50
- },
- new JoinMetadata
- {
- Description = "Toggles the participant's video mute status",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- [JoinName("ParticipantPinToggleStart")]
- public JoinDataComplete ParticipantPinToggleStart = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 1100,
- JoinSpan = 50
- },
- new JoinMetadata
- {
- Description = "Toggles the participant's pin status",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Digital
- });
-
- #endregion
-
-
-
- #region Analog
-
- [JoinName("MinutesBeforeMeetingStart")]
- public JoinDataComplete MinutesBeforeMeetingStart = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 41,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Minutes before meeting start that a meeting is joinable",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Analog
- });
-
- [JoinName("CameraNumberSelect")]
- public JoinDataComplete CameraNumberSelect = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 60,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Number Select/FB",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Analog
- });
-
- [JoinName("DirectoryRowCount")]
- public JoinDataComplete DirectoryRowCount = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 101,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Directory Row Count FB",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Analog
- });
-
- [JoinName("DirectorySelectRow")]
- public JoinDataComplete DirectorySelectRow = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 101,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Directory Select Row",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Analog
- });
-
- [JoinName("CameraPresetSelect")]
- public JoinDataComplete CameraPresetSelect = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 121,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Preset Select",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Analog
- });
-
- [JoinName("ParticipantCount")]
- public JoinDataComplete ParticipantCount = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 151,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Current Participant Count",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Analog
- });
-
- [JoinName("Meeting Count Fb")]
- public JoinDataComplete MeetingCount = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 161,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Meeting Count",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Analog
- });
-
- [JoinName("VolumeLevel")]
- public JoinDataComplete VolumeLevel = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 174,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Volume Level",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Analog
- });
-
- #endregion
-
-
-
- #region Serials
-
- [JoinName("CurrentDialString")]
- public JoinDataComplete CurrentDialString = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 1,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Current Dial String",
- JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("PhoneString")]
- public JoinDataComplete PhoneDialString = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 2,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Phone Dial String",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("CurrentCallName")]
- public JoinDataComplete CurrentCallData = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 2,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Current Call Data - XSIG",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("CallDirection")]
- public JoinDataComplete CallDirection = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 22,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Current Call Direction",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("IncomingCallName")]
- public JoinDataComplete IncomingCallName = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 51,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Incoming Call Name",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("IncomingCallNumber")]
- public JoinDataComplete IncomingCallNumber = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 52,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Incoming Call Number",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
-
- [JoinName("DirectorySearchString")]
- public JoinDataComplete DirectorySearchString = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 100,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Directory Search String",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("DirectoryEntries")]
- public JoinDataComplete DirectoryEntries = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 101,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Directory Entries - XSig, 255 entries",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("Schedule")]
- public JoinDataComplete Schedule = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 102,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Schedule Data - XSIG",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("CameraPresetNames")]
- public JoinDataComplete CameraPresetNames = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 121,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Camera Preset Names - XSIG, max of 15",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("CameraLayoutStringFb")]
- public JoinDataComplete CameraLayoutStringFb = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 141,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Current Layout Fb",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("AvailableLayoutsFb")]
- public JoinDataComplete AvailableLayoutsFb = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 142,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "xSig of all available layouts",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("SelectLayout")]
- public JoinDataComplete SelectLayout = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 142,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Select Layout by string",
- JoinCapabilities = eJoinCapabilities.FromSIMPL,
- JoinType = eJoinType.Serial
- });
-
-
- [JoinName("CurrentParticipants")]
- public JoinDataComplete CurrentParticipants = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 151,
- JoinSpan = 1
- },
- new JoinMetadata()
- {
- Description = "Current Participants XSig",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("CurrentSource")]
- public JoinDataComplete CurrentSource = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 201,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Current Source",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("SelfviewPositionFb")]
- public JoinDataComplete SelfviewPositionFb = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 211,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "advance selfview position",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("DirectoryEntrySelectedName")]
- public JoinDataComplete DirectoryEntrySelectedName = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 356,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Selected Directory Entry Name",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("DirectoryEntrySelectedNumber")]
- public JoinDataComplete DirectoryEntrySelectedNumber = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 357,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Selected Directory Entry Number",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- [JoinName("DirectorySelectedFolderName")]
- public JoinDataComplete DirectorySelectedFolderName = new JoinDataComplete(
- new JoinData
- {
- JoinNumber = 358,
- JoinSpan = 1
- },
- new JoinMetadata
- {
- Description = "Selected Directory Folder Name",
- JoinCapabilities = eJoinCapabilities.ToSIMPL,
- JoinType = eJoinType.Serial
- });
-
- #endregion
-
-
- public VideoCodecControllerJoinMap(uint joinStart)
- : base(joinStart, typeof(VideoCodecControllerJoinMap))
- {
- }
-
- public VideoCodecControllerJoinMap(uint joinStart, Type type)
- : base(joinStart, type)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasBranding.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasBranding.cs
index 63f4917a..10db107f 100644
--- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasBranding.cs
+++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasBranding.cs
@@ -7,14 +7,4 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
bool BrandingEnabled { get; }
void InitializeBranding(string roomKey);
}
-}
-
-namespace PepperDash_Essentials_Core.DeviceTypeInterfaces
-{
- [Obsolete("Use PepperDash.Essentials.Core.DeviceTypeInterfaces")]
- public interface IHasBranding
- {
- bool BrandingEnabled { get; }
- void InitializeBranding(string roomKey);
- }
}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasPhoneDialing.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasPhoneDialing.cs
index 7f75adec..cd208d4b 100644
--- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasPhoneDialing.cs
+++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasPhoneDialing.cs
@@ -12,18 +12,4 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
void EndPhoneCall();
void SendDtmfToPhone(string digit);
}
-}
-
-namespace PepperDash_Essentials_Core.DeviceTypeInterfaces
-{
- [Obsolete("Use PepperDash.Essentials.Core.DeviceTypeInterfaces")]
- public interface IHasPhoneDialing
- {
- BoolFeedback PhoneOffHookFeedback { get; }
- StringFeedback CallerIdNameFeedback { get; }
- StringFeedback CallerIdNumberFeedback { get; }
- void DialPhoneCall(string number);
- void EndPhoneCall();
- void SendDtmfToPhone(string digit);
- }
}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ILanguageDefinition.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ILanguageDefinition.cs
index abf138a4..181cac35 100644
--- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ILanguageDefinition.cs
+++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ILanguageDefinition.cs
@@ -16,20 +16,3 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
List RoomNames { get; set; }
}
}
-
-namespace PepperDash_Essentials_Core.DeviceTypeInterfaces
-{
- [Obsolete("Use PepperDash.Essentials.Core.DeviceTypeInterfaces")]
- public interface ILanguageDefinition
- {
- string LocaleName { get; set; }
- string FriendlyName { get; set; }
- bool Enable { get; set; }
- List UiLabels { get; set; }
- List Sources { get; set; }
- List Destinations { get; set; }
- List SourceGroupNames { get; set; }
- List DestinationGroupNames { get; set; }
- List RoomNames { get; set; }
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ILanguageProvider.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ILanguageProvider.cs
index dd48723d..428f78c3 100644
--- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ILanguageProvider.cs
+++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/ILanguageProvider.cs
@@ -11,15 +11,3 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
}
}
-
-namespace PepperDash_Essentials_Core.DeviceTypeInterfaces
-{
- [Obsolete("Use PepperDash.Essentials.Core.DeviceTypeInterfaces")]
- public interface ILanguageProvider
- {
- ILanguageDefinition CurrentLanguage { get; set; }
-
- event EventHandler CurrentLanguageChanged;
- }
-
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IPower.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IPower.cs
index 0fcf32e9..b7c3345e 100644
--- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IPower.cs
+++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IPower.cs
@@ -13,17 +13,6 @@ using PepperDash.Essentials.Core.SmartObjects;
namespace PepperDash.Essentials.Core
{
- ///
- /// Defines the ability to power a device on and off
- ///
- [Obsolete("Will be replaced by IHasPowerControlWithFeedback")]
- public interface IPower
- {
- void PowerOn();
- void PowerOff();
- void PowerToggle();
- BoolFeedback PowerIsOnFeedback { get; }
- }
///
/// Adds feedback for current power state
diff --git a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/LanguageLabel.cs b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/LanguageLabel.cs
index c7d26722..890d1416 100644
--- a/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/LanguageLabel.cs
+++ b/src/PepperDash.Essentials.Core/DeviceTypeInterfaces/LanguageLabel.cs
@@ -10,16 +10,4 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
public string DisplayText { get; set; }
public uint JoinNumber { get; set; }
}
-}
-
-namespace PepperDash_Essentials_Core.DeviceTypeInterfaces
-{
- [Obsolete("Use PepperDash.Essentials.Core.DeviceTypeInterfaces")]
- public class LanguageLabel
- {
- public string Key { get; set; }
- public string Description { get; set; }
- public string DisplayText { get; set; }
- public uint JoinNumber { get; set; }
- }
}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/Devices/GenericMonitoredTcpDevice.cs b/src/PepperDash.Essentials.Core/Devices/GenericMonitoredTcpDevice.cs
index e7267782..1bf8edb9 100644
--- a/src/PepperDash.Essentials.Core/Devices/GenericMonitoredTcpDevice.cs
+++ b/src/PepperDash.Essentials.Core/Devices/GenericMonitoredTcpDevice.cs
@@ -35,35 +35,6 @@ namespace PepperDash.Essentials.Core.Devices
{
}
-
- ///
- /// Generic monitor for TCP reachability. Default with 30s poll, 120s warning and 300s error times
- ///
- [Obsolete]
- public GenericCommunicationMonitoredDevice(string key, string name, string hostname, int port, string pollString)
- : this(key, name, hostname, port, pollString, 30000, 120000, 300000)
- {
- }
-
- ///
- /// Monitor for TCP reachability
- ///
- [Obsolete]
- public GenericCommunicationMonitoredDevice(string key, string name, string hostname, int port, string pollString,
- long pollTime, long warningTime, long errorTime)
- : base(key, name)
- {
- Client = new GenericTcpIpClient(key + "-tcp", hostname, port, 512);
- CommunicationMonitor = new GenericCommunicationMonitor(this, Client, pollTime, warningTime, errorTime, pollString);
-
- // ------------------------------------------------------DELETE THIS
- CommunicationMonitor.StatusChange += (o, a) =>
- {
- Debug.Console(2, this, "Communication monitor status change: {0}", a.Status);
- };
- }
-
-
public override bool CustomActivate()
{
CommunicationMonitor.Start();
diff --git a/src/PepperDash.Essentials.Core/Devices/PresentationDeviceType.cs b/src/PepperDash.Essentials.Core/Devices/PresentationDeviceType.cs
index adb427fb..41555ae8 100644
--- a/src/PepperDash.Essentials.Core/Devices/PresentationDeviceType.cs
+++ b/src/PepperDash.Essentials.Core/Devices/PresentationDeviceType.cs
@@ -9,18 +9,6 @@ using Crestron.SimplSharpPro.UI;
namespace PepperDash.Essentials.Core
{
- //[Obsolete]
- //public class PresentationDeviceType
- //{
- // public const ushort Default = 1;
- // public const ushort CableSetTopBox = 2;
- // public const ushort SatelliteSetTopBox = 3;
- // public const ushort Dvd = 4;
- // public const ushort Bluray = 5;
- // public const ushort PC = 9;
- // public const ushort Laptop = 10;
- //}
-
public enum PresentationSourceType
{
None, Dvd, Laptop, PC, SetTopBox, VCR
diff --git a/src/PepperDash.Essentials.Core/Display/BasicIrDisplay.cs b/src/PepperDash.Essentials.Core/Display/BasicIrDisplay.cs
index 7a8eb8b1..00124ae7 100644
--- a/src/PepperDash.Essentials.Core/Display/BasicIrDisplay.cs
+++ b/src/PepperDash.Essentials.Core/Display/BasicIrDisplay.cs
@@ -20,9 +20,6 @@ namespace PepperDash.Essentials.Core
public IrOutputPortController IrPort { get; private set; }
public ushort IrPulseTime { get; set; }
- [Obsolete("This property will be removed in version 2.0.0")]
- public override BoolFeedback PowerIsOnFeedback { get; protected set; }
-
protected Func PowerIsOnFeedbackFunc
{
get { return () => _PowerIsOn; }
@@ -46,14 +43,6 @@ namespace PepperDash.Essentials.Core
IrPort = new IrOutputPortController(key + "-ir", port, irDriverFilepath);
DeviceManager.AddDevice(IrPort);
- PowerIsOnFeedback = new BoolFeedback(PowerIsOnFeedbackFunc);
-
- PowerIsOnFeedback.OutputChange += (o, a) =>
- {
- Debug.Console(2, this, "Power on={0}", _PowerIsOn);
- if (_PowerIsOn) StartWarmingTimer();
- else StartCoolingTimer();
- };
IsWarmingUpFeedback.OutputChange += (o, a) => Debug.Console(2, this, "Warming up={0}", _IsWarmingUp);
IsCoolingDownFeedback.OutputChange += (o, a) => Debug.Console(2, this, "Cooling down={0}", _IsCoolingDown);
@@ -117,20 +106,17 @@ namespace PepperDash.Essentials.Core
{
IrPort.Pulse(IROutputStandardCommands.IROut_POWER_ON, IrPulseTime);
_PowerIsOn = true;
- PowerIsOnFeedback.FireUpdate();
}
public override void PowerOff()
{
_PowerIsOn = false;
- PowerIsOnFeedback.FireUpdate();
IrPort.Pulse(IROutputStandardCommands.IROut_POWER_OFF, IrPulseTime);
}
public override void PowerToggle()
{
_PowerIsOn = false;
- PowerIsOnFeedback.FireUpdate();
IrPort.Pulse(IROutputStandardCommands.IROut_POWER, IrPulseTime);
}
@@ -193,7 +179,7 @@ namespace PepperDash.Essentials.Core
action();
};
- if (!PowerIsOnFeedback.BoolValue)
+ if (!_PowerIsOn)
{
PowerOn();
EventHandler oneTimer = null;
diff --git a/src/PepperDash.Essentials.Core/Display/DisplayBase.cs b/src/PepperDash.Essentials.Core/Display/DisplayBase.cs
index a8de2796..6101d232 100644
--- a/src/PepperDash.Essentials.Core/Display/DisplayBase.cs
+++ b/src/PepperDash.Essentials.Core/Display/DisplayBase.cs
@@ -20,7 +20,7 @@ namespace PepperDash.Essentials.Core
///
///
///
- public abstract class DisplayBase : EssentialsDevice, IHasFeedback, IRoutingSinkWithSwitching, IHasPowerControl, IWarmingCooling, IUsageTracking, IPower
+ public abstract class DisplayBase : EssentialsDevice, IHasFeedback, IRoutingSinkWithSwitching, IHasPowerControl, IWarmingCooling, IUsageTracking
{
public event SourceInfoChangeHandler CurrentSourceChange;
@@ -51,9 +51,6 @@ namespace PepperDash.Essentials.Core
public BoolFeedback IsCoolingDownFeedback { get; protected set; }
public BoolFeedback IsWarmingUpFeedback { get; private set; }
- [Obsolete("This property will be removed in version 2.0.0")]
- public abstract BoolFeedback PowerIsOnFeedback { get; protected set; }
-
public UsageTracking UsageTracker { get; set; }
public uint WarmupTime { get; set; }
@@ -269,7 +266,7 @@ namespace PepperDash.Essentials.Core
abstract protected Func CurrentInputFeedbackFunc { get; }
- public override BoolFeedback PowerIsOnFeedback { get; protected set; }
+ public BoolFeedback PowerIsOnFeedback { get; protected set; }
abstract protected Func PowerIsOnFeedbackFunc { get; }
diff --git a/src/PepperDash.Essentials.Core/Factory/ReadyEventArgs.cs b/src/PepperDash.Essentials.Core/Factory/ReadyEventArgs.cs
index be8369d2..6ccc0600 100644
--- a/src/PepperDash.Essentials.Core/Factory/ReadyEventArgs.cs
+++ b/src/PepperDash.Essentials.Core/Factory/ReadyEventArgs.cs
@@ -23,24 +23,3 @@ namespace PepperDash.Essentials.Core
bool IsReady { get; }
}
}
-
-namespace PepperDash_Essentials_Core
-{
- [Obsolete("Use PepperDash.Essentials.Core")]
- public class IsReadyEventArgs : EventArgs
- {
- public bool IsReady { get; set; }
-
- public IsReadyEventArgs(bool data)
- {
- IsReady = data;
- }
- }
-
- [Obsolete("Use PepperDash.Essentials.Core")]
- public interface IHasReady
- {
- event EventHandler IsReadyEvent;
- bool IsReady { get; }
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/JoinMaps/JoinMapBase.cs b/src/PepperDash.Essentials.Core/JoinMaps/JoinMapBase.cs
index 6dff477d..0f5519eb 100644
--- a/src/PepperDash.Essentials.Core/JoinMaps/JoinMapBase.cs
+++ b/src/PepperDash.Essentials.Core/JoinMaps/JoinMapBase.cs
@@ -81,97 +81,6 @@ namespace PepperDash.Essentials.Core
}
- ///
- /// Base class for join maps
- ///
- [Obsolete("This is being deprecated in favor of JoinMapBaseAdvanced")]
- public abstract class JoinMapBase
- {
- ///
- /// Modifies all the join numbers by adding the offset. This should never be called twice
- ///
- ///
- public abstract void OffsetJoinNumbers(uint joinStart);
-
- ///
- /// The collection of joins and associated metadata
- ///
- public Dictionary Joins = new Dictionary();
-
- ///
- /// Prints the join information to console
- ///
- public void PrintJoinMapInfo()
- {
- CrestronConsole.ConsoleCommandResponse("{0}:\n", GetType().Name);
-
- // Get the joins of each type and print them
- CrestronConsole.ConsoleCommandResponse("Digitals:");
- var digitals = Joins.Where(j => (j.Value.JoinType & eJoinType.Digital) == eJoinType.Digital).ToDictionary(j => j.Key, j => j.Value);
- CrestronConsole.ConsoleCommandResponse("Found {0} Digital Joins", digitals.Count);
- PrintJoinList(GetSortedJoins(digitals));
-
- CrestronConsole.ConsoleCommandResponse("Analogs:");
- var analogs = Joins.Where(j => (j.Value.JoinType & eJoinType.Analog) == eJoinType.Analog).ToDictionary(j => j.Key, j => j.Value);
- CrestronConsole.ConsoleCommandResponse("Found {0} Analog Joins", analogs.Count);
- PrintJoinList(GetSortedJoins(analogs));
-
- CrestronConsole.ConsoleCommandResponse("Serials:");
- var serials = Joins.Where(j => (j.Value.JoinType & eJoinType.Serial) == eJoinType.Serial).ToDictionary(j => j.Key, j => j.Value);
- CrestronConsole.ConsoleCommandResponse("Found {0} Serial Joins", serials.Count);
- PrintJoinList(GetSortedJoins(serials));
-
- }
-
- ///
- /// Returns a sorted list by JoinNumber
- ///
- ///
- ///
- List> GetSortedJoins(Dictionary joins)
- {
- var sortedJoins = joins.ToList();
-
- sortedJoins.Sort((pair1, pair2) => pair1.Value.JoinNumber.CompareTo(pair2.Value.JoinNumber));
-
- return sortedJoins;
- }
-
- void PrintJoinList(List> joins)
- {
- foreach (var join in joins)
- {
- CrestronConsole.ConsoleCommandResponse(
- @"Join Number: {0} | Label: '{1}' | JoinSpan: '{2}' | Type: '{3}' | Capabilities: '{4}'",
- join.Value.JoinNumber,
- join.Value.Label,
- join.Value.JoinSpan,
- join.Value.JoinType.ToString(),
- join.Value.JoinCapabilities.ToString());
- }
- }
-
- ///
- /// Returns the join number for the join with the specified key
- ///
- ///
- ///
- public uint GetJoinForKey(string key)
- {
- return Joins.ContainsKey(key) ? Joins[key].JoinNumber : 0;
- }
-
- ///
- /// Returns the join span for the join with the specified key
- ///
- ///
- ///
- public uint GetJoinSpanForKey(string key)
- {
- return Joins.ContainsKey(key) ? Joins[key].JoinSpan : 0;
- }
- }
-
///
/// Base class for join maps
///
@@ -432,27 +341,6 @@ namespace PepperDash.Essentials.Core
public class JoinMetadata
{
private string _description;
-
- ///
- /// Join number (based on join offset value)
- ///
- [JsonProperty("joinNumber")]
- [Obsolete]
- public uint JoinNumber { get; set; }
- ///
- /// Join range span. If join indicates the start of a range of joins, this indicated the maximum number of joins in the range
- ///
- [Obsolete]
- [JsonProperty("joinSpan")]
- public uint JoinSpan { get; set; }
-
- ///
- /// A label for the join to better describe its usage
- ///
- [Obsolete("Use Description instead")]
- [JsonProperty("label")]
- public string Label { get { return _description; } set { _description = value; } }
-
///
/// A description for the join to better describe its usage
///
diff --git a/src/PepperDash.Essentials.Core/Queues/ComsMessage.cs b/src/PepperDash.Essentials.Core/Queues/ComsMessage.cs
index 3c01032e..596c5921 100644
--- a/src/PepperDash.Essentials.Core/Queues/ComsMessage.cs
+++ b/src/PepperDash.Essentials.Core/Queues/ComsMessage.cs
@@ -62,78 +62,6 @@ namespace PepperDash.Essentials.Core.Queues
}
}
- ///
- /// Shows either the byte[] or string to be sent
- ///
- public override string ToString()
- {
- return _bytes != null ? _bytes.ToString() : _string;
- }
- }
-}
-
-namespace PepperDash_Essentials_Core.Queues
-{
- ///
- /// IBasicCommunication Message for IQueue
- ///
- [Obsolete("Use PepperDash.Essentials.Core.Queues")]
- public class ComsMessage : IQueueMessage
- {
- private readonly byte[] _bytes;
- private readonly IBasicCommunication _coms;
- private readonly string _string;
- private readonly bool _isByteMessage;
-
- ///
- /// Constructor for a string message
- ///
- /// IBasicCommunication to send the message
- /// Message to send
- public ComsMessage(IBasicCommunication coms, string message)
- {
- Validate(coms, message);
- _coms = coms;
- _string = message;
- }
-
- ///
- /// Constructor for a byte message
- ///
- /// IBasicCommunication to send the message
- /// Message to send
- public ComsMessage(IBasicCommunication coms, byte[] message)
- {
- Validate(coms, message);
- _coms = coms;
- _bytes = message;
- _isByteMessage = true;
- }
-
- private void Validate(IBasicCommunication coms, object message)
- {
- if (coms == null)
- throw new ArgumentNullException("coms");
-
- if (message == null)
- throw new ArgumentNullException("message");
- }
-
- ///
- /// Dispatchs the string/byte[] to the IBasicCommunication specified
- ///
- public void Dispatch()
- {
- if (_isByteMessage)
- {
- _coms.SendBytes(_bytes);
- }
- else
- {
- _coms.SendText(_string);
- }
- }
-
///
/// Shows either the byte[] or string to be sent
///
diff --git a/src/PepperDash.Essentials.Core/Queues/GenericQueue.cs b/src/PepperDash.Essentials.Core/Queues/GenericQueue.cs
index d4fe1af3..dc7ff0d4 100644
--- a/src/PepperDash.Essentials.Core/Queues/GenericQueue.cs
+++ b/src/PepperDash.Essentials.Core/Queues/GenericQueue.cs
@@ -1,8 +1,9 @@
using System;
+using System.Collections.Concurrent;
+using System.Threading;
using Crestron.SimplSharp;
-using Crestron.SimplSharp.Reflection;
-using Crestron.SimplSharpPro.CrestronThread;
using PepperDash.Core;
+using Thread = Crestron.SimplSharpPro.CrestronThread.Thread;
namespace PepperDash.Essentials.Core.Queues
{
@@ -12,7 +13,7 @@ namespace PepperDash.Essentials.Core.Queues
public class GenericQueue : IQueue
{
private readonly string _key;
- protected readonly CrestronQueue _queue;
+ protected readonly ConcurrentQueue _queue;
protected readonly Thread _worker;
protected readonly CEvent _waitHandle = new CEvent();
@@ -33,7 +34,7 @@ namespace PepperDash.Essentials.Core.Queues
{
get
{
- return _queue.Size;
+ return int.MaxValue;
}
}
@@ -137,7 +138,8 @@ namespace PepperDash.Essentials.Core.Queues
{
cap = capacity; // overrides default
}
- _queue = new CrestronQueue(cap);
+
+ _queue = new ConcurrentQueue();
_worker = new Thread(ProcessQueue, null, Thread.eThreadStartOptions.Running)
{
Priority = priority,
@@ -170,14 +172,9 @@ namespace PepperDash.Essentials.Core.Queues
{
while (true)
{
- IQueueMessage item = null;
+ if (_queue.TryDequeue(out var item) && item == null)
+ break;
- if (_queue.Count > 0)
- {
- item = _queue.Dequeue();
- if (item == null)
- break;
- }
if (item != null)
{
try
@@ -188,7 +185,7 @@ namespace PepperDash.Essentials.Core.Queues
if (_delayEnabled)
Thread.Sleep(_delayTime);
}
- catch (System.Threading.ThreadAbortException)
+ catch (ThreadAbortException)
{
//swallowing this exception, as it should only happen on shut down
}
@@ -244,14 +241,13 @@ namespace PepperDash.Essentials.Core.Queues
if (disposing)
{
- Debug.Console(2, this, "Disposing...");
- if (_queue != null && !_queue.Disposed)
+ using (_waitHandle)
{
- _queue.Clear();
- Enqueue(null);
+ Debug.Console(2, this, "Disposing...");
+ _queue.Enqueue(null);
+ _waitHandle.Set();
+ _worker.Join();
}
- _worker.Abort();
- _waitHandle.Close();
}
Disposed = true;
@@ -271,261 +267,3 @@ namespace PepperDash.Essentials.Core.Queues
}
}
}
-
-namespace PepperDash_Essentials_Core.Queues
-{
- ///
- /// Threadsafe processing of queued items with pacing if required
- ///
- [Obsolete("Use PepperDash.Essentials.Core.Queues")]
- public class GenericQueue : IQueue
- {
- private readonly string _key;
- protected readonly CrestronQueue _queue;
- protected readonly Thread _worker;
- protected readonly CEvent _waitHandle = new CEvent();
-
- private bool _delayEnabled;
- private int _delayTime;
-
- private const Thread.eThreadPriority _defaultPriority = Thread.eThreadPriority.MediumPriority;
-
- ///
- /// If the instance has been disposed.
- ///
- public bool Disposed { get; private set; }
-
- ///
- /// Returns the capacity of the CrestronQueue (fixed Size property)
- ///
- public int QueueCapacity
- {
- get
- {
- return _queue.Size;
- }
- }
-
- ///
- /// Returns the number of elements currently in the CrestronQueue
- ///
- public int QueueCount
- {
- get
- {
- return _queue.Count;
- }
- }
-
- ///
- /// Constructor with no thread priority
- ///
- ///
- public GenericQueue(string key)
- : this(key, _defaultPriority, 0, 0)
- {
- }
-
- ///
- /// Constructor with queue size
- ///
- ///
- /// Fixed size for the queue to hold
- public GenericQueue(string key, int capacity)
- : this(key, _defaultPriority, capacity, 0)
- {
- }
-
- ///
- /// Constructor for generic queue with no pacing
- ///
- /// Key
- /// Pacing in ms between actions
- public GenericQueue(int pacing, string key)
- : this(key, _defaultPriority, 0, pacing)
- {
- }
-
- ///
- /// Constructor with pacing and capacity
- ///
- ///
- ///
- ///
- public GenericQueue(string key, int pacing, int capacity)
- : this(key, _defaultPriority, capacity, pacing)
- {
- }
-
- ///
- /// Constructor with pacing and priority
- ///
- ///
- ///
- ///
- public GenericQueue(string key, int pacing, Thread.eThreadPriority priority)
- : this(key, priority, 0, pacing)
- {
- }
-
- ///
- /// Constructor with pacing, priority and capacity
- ///
- ///
- ///
- ///
- public GenericQueue(string key, Thread.eThreadPriority priority, int capacity)
- : this(key, priority, capacity, 0)
- {
- }
-
- ///
- /// Constructor with pacing, priority and capacity
- ///
- ///
- ///
- ///
- ///
- public GenericQueue(string key, int pacing, Thread.eThreadPriority priority, int capacity)
- : this(key, priority, capacity, pacing)
- {
- }
-
- ///
- /// Constructor for generic queue with no pacing
- ///
- /// Key
- ///
- ///
- ///
- protected GenericQueue(string key, Thread.eThreadPriority priority, int capacity, int pacing)
- {
- _key = key;
- int cap = 25; // sets default
- if (capacity > 0)
- {
- cap = capacity; // overrides default
- }
- _queue = new CrestronQueue(cap);
- _worker = new Thread(ProcessQueue, null, Thread.eThreadStartOptions.Running)
- {
- Priority = priority
- };
-
- SetDelayValues(pacing);
- }
-
- private void SetDelayValues(int pacing)
- {
- _delayEnabled = pacing > 0;
- _delayTime = pacing;
-
- CrestronEnvironment.ProgramStatusEventHandler += programEvent =>
- {
- if (programEvent != eProgramStatusEventType.Stopping)
- return;
-
- Dispose(true);
- };
- }
-
- ///
- /// Thread callback
- ///
- /// The action used to process dequeued items
- /// Null when the thread is exited
- private object ProcessQueue(object obj)
- {
- while (true)
- {
- IQueueMessage item = null;
-
- if (_queue.Count > 0)
- {
- item = _queue.Dequeue();
- if (item == null)
- break;
- }
- if (item != null)
- {
- try
- {
- Debug.Console(2, this, "Processing queue item: '{0}'", item.ToString());
- item.Dispatch();
-
- if (_delayEnabled)
- Thread.Sleep(_delayTime);
- }
- catch (Exception ex)
- {
- Debug.Console(0, this, Debug.ErrorLogLevel.Error, "Caught an exception in the Queue {0}", ex.Message);
- Debug.Console(2, this, Debug.ErrorLogLevel.Error, "Stack Trace: {0}", ex.StackTrace);
-
- if (ex.InnerException != null)
- {
- Debug.Console(0, this, Debug.ErrorLogLevel.Error, "Caught an exception in the Queue {0}", ex.InnerException.Message);
- Debug.Console(2, this, Debug.ErrorLogLevel.Error, "Stack Trace: {0}", ex.InnerException.StackTrace);
- }
- }
- }
- else _waitHandle.Wait();
- }
-
- return null;
- }
-
- public void Enqueue(IQueueMessage item)
- {
- _queue.Enqueue(item);
- _waitHandle.Set();
- }
-
- ///
- /// Disposes the thread and cleans up resources. Thread cannot be restarted once
- /// disposed.
- ///
- public void Dispose()
- {
- Dispose(true);
- CrestronEnvironment.GC.SuppressFinalize(this);
- }
-
- ///
- /// Actually does the disposing. If you override this method, be sure to either call the base implementation
- /// or clean up all the resources yourself.
- ///
- /// set to true unless called from finalizer
- protected void Dispose(bool disposing)
- {
- if (Disposed)
- return;
-
- if (disposing)
- {
- Debug.Console(2, this, "Disposing...");
- if (_queue != null && !_queue.Disposed)
- {
- _queue.Clear();
- Enqueue(null);
- }
- _worker.Abort();
- _waitHandle.Close();
- }
-
- Disposed = true;
- }
-
- ~GenericQueue()
- {
- Dispose(true);
- }
-
- ///
- /// Key
- ///
- public string Key
- {
- get { return _key; }
- }
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/Queues/IQueue.cs b/src/PepperDash.Essentials.Core/Queues/IQueue.cs
index 15803330..cb3bb947 100644
--- a/src/PepperDash.Essentials.Core/Queues/IQueue.cs
+++ b/src/PepperDash.Essentials.Core/Queues/IQueue.cs
@@ -1,8 +1,4 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Crestron.SimplSharp;
using PepperDash.Core;
namespace PepperDash.Essentials.Core.Queues
@@ -13,13 +9,3 @@ namespace PepperDash.Essentials.Core.Queues
bool Disposed { get; }
}
}
-
-namespace PepperDash_Essentials_Core.Queues
-{
- [Obsolete("Use PepperDash.Essentials.Core.Queues")]
- public interface IQueue : IKeyed, IDisposable where T : class
- {
- void Enqueue(T item);
- bool Disposed { get; }
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/Queues/IQueueMessage.cs b/src/PepperDash.Essentials.Core/Queues/IQueueMessage.cs
index 8ffd4d96..408bffca 100644
--- a/src/PepperDash.Essentials.Core/Queues/IQueueMessage.cs
+++ b/src/PepperDash.Essentials.Core/Queues/IQueueMessage.cs
@@ -6,13 +6,4 @@ namespace PepperDash.Essentials.Core.Queues
{
void Dispatch();
}
-}
-
-namespace PepperDash_Essentials_Core.Queues
-{
- [Obsolete("Use PepperDash.Essentials.Core.Queues")]
- public interface IQueueMessage
- {
- void Dispatch();
- }
}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/Queues/ProcessStringMessage.cs b/src/PepperDash.Essentials.Core/Queues/ProcessStringMessage.cs
index d8ea4ada..5617326f 100644
--- a/src/PepperDash.Essentials.Core/Queues/ProcessStringMessage.cs
+++ b/src/PepperDash.Essentials.Core/Queues/ProcessStringMessage.cs
@@ -42,47 +42,3 @@ namespace PepperDash.Essentials.Core.Queues
}
}
}
-
-namespace PepperDash_Essentials_Core.Queues
-{
- ///
- /// Message class for processing strings via an IQueue
- ///
- [Obsolete("Use PepperDash.Essentials.Core.Queues")]
- public class ProcessStringMessage : IQueueMessage
- {
- private readonly Action _action;
- private readonly string _message;
-
- ///
- /// Constructor
- ///
- /// Message to be processed
- /// Action to invoke on the message
- public ProcessStringMessage(string message, Action action)
- {
- _message = message;
- _action = action;
- }
-
- ///
- /// Processes the string with the given action
- ///
- public void Dispatch()
- {
- if (_action == null || String.IsNullOrEmpty(_message))
- return;
-
- _action(_message);
- }
-
- ///
- /// To string
- ///
- /// The current message
- public override string ToString()
- {
- return _message ?? String.Empty;
- }
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/Queues/StringResponseProcessor.cs b/src/PepperDash.Essentials.Core/Queues/StringResponseProcessor.cs
index e2db5d72..62020af0 100644
--- a/src/PepperDash.Essentials.Core/Queues/StringResponseProcessor.cs
+++ b/src/PepperDash.Essentials.Core/Queues/StringResponseProcessor.cs
@@ -104,107 +104,3 @@ namespace PepperDash.Essentials.Core.Queues
}
}
}
-
-namespace PepperDash_Essentials_Core.Queues
-{
- [Obsolete("Use PepperDash.Essentials.Core.Queues")]
- public sealed class StringResponseProcessor : IKeyed, IDisposable
- {
- private readonly Action _processStringAction;
- private readonly IQueue _queue;
- private readonly IBasicCommunication _coms;
- private readonly CommunicationGather _gather;
-
- private StringResponseProcessor(string key, Action processStringAction)
- {
- _processStringAction = processStringAction;
- _queue = new GenericQueue(key);
-
- CrestronEnvironment.ProgramStatusEventHandler += programEvent =>
- {
- if (programEvent != eProgramStatusEventType.Stopping)
- return;
-
- Dispose();
- };
- }
-
- ///
- /// Constructor that builds an instance and subscribes to coms TextReceived for processing
- ///
- /// Com port to process strings from
- /// Action to process the incoming strings
- public StringResponseProcessor(IBasicCommunication coms, Action processStringAction)
- : this(coms.Key, processStringAction)
- {
- _coms = coms;
- coms.TextReceived += OnResponseReceived;
- }
-
- ///
- /// Constructor that builds an instance and subscribes to gather Line Received for processing
- ///
- /// Gather to process strings from
- /// Action to process the incoming strings
- public StringResponseProcessor(CommunicationGather gather, Action processStringAction)
- : this(gather.Port.Key, processStringAction)
- {
- _gather = gather;
- gather.LineReceived += OnResponseReceived;
- }
-
- private void OnResponseReceived(object sender, GenericCommMethodReceiveTextArgs args)
- {
- _queue.Enqueue(new ProcessStringMessage(args.Text, _processStringAction));
- }
-
- ///
- /// Key
- ///
- public string Key
- {
- get { return _queue.Key; }
- }
-
- ///
- /// Disposes the instance and cleans up resources.
- ///
- public void Dispose()
- {
- Dispose(true);
- CrestronEnvironment.GC.SuppressFinalize(this);
- }
-
- private void Dispose(bool disposing)
- {
- if (Disposed)
- return;
-
- if (disposing)
- {
- if (_coms != null)
- _coms.TextReceived -= OnResponseReceived;
-
- if (_gather != null)
- {
- _gather.LineReceived -= OnResponseReceived;
- _gather.Stop();
- }
-
- _queue.Dispose();
- }
-
- Disposed = true;
- }
-
- ///
- /// If the instance has been disposed or not. If it has, you can not use it anymore
- ///
- public bool Disposed { get; private set; }
-
- ~StringResponseProcessor()
- {
- Dispose(false);
- }
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Core/Routing/RoutingInterfaces.cs b/src/PepperDash.Essentials.Core/Routing/RoutingInterfaces.cs
index dcec7ae2..bfaa27db 100644
--- a/src/PepperDash.Essentials.Core/Routing/RoutingInterfaces.cs
+++ b/src/PepperDash.Essentials.Core/Routing/RoutingInterfaces.cs
@@ -55,15 +55,6 @@ namespace PepperDash.Essentials.Core
{
}
-
- ///
- /// For fixed-source endpoint devices
- ///
- [Obsolete("Please switch to IRoutingSink")]
- public interface IRoutingSinkNoSwitching : IRoutingSink
- {
-
- }
///
/// Endpoint device like a display, that selects inputs
diff --git a/src/PepperDash.Essentials.Core/Shades/Shade Interfaces.cs b/src/PepperDash.Essentials.Core/Shades/Shade Interfaces.cs
index 2fded479..94a88c36 100644
--- a/src/PepperDash.Essentials.Core/Shades/Shade Interfaces.cs
+++ b/src/PepperDash.Essentials.Core/Shades/Shade Interfaces.cs
@@ -1,10 +1,5 @@
using System;
using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Crestron.SimplSharp;
-
-using PepperDash.Core;
namespace PepperDash.Essentials.Core.Shades
{
@@ -16,16 +11,6 @@ namespace PepperDash.Essentials.Core.Shades
List Shades { get; }
}
- ///
- /// Requirements for a device that implements basic Open/Close shade control
- ///
- [Obsolete("Please use IShadesOpenCloseStop instead")]
- public interface IShadesOpenClose
- {
- void Open();
- void Close();
- }
-
///
/// Requirements for a device that implements basic Open/Close/Stop shade control (Uses 3 relays)
///
@@ -45,15 +30,6 @@ namespace PepperDash.Essentials.Core.Shades
event EventHandler PresetSaved;
}
- ///
- /// Requirements for a shade that implements press/hold raise/lower functions
- ///
- [Obsolete("Please use IShadesOpenCloseStop instead")]
- public interface IShadesRaiseLower
- {
- void Raise(bool state);
- void Lower(bool state);
- }
///
/// Requirements for a shade device that provides raising/lowering feedback
@@ -73,15 +49,6 @@ namespace PepperDash.Essentials.Core.Shades
BoolFeedback ShadeIsClosedFeedback { get; }
}
- ///
- ///
- ///
- [Obsolete("Please use IShadesOpenCloseStop instead")]
- public interface IShadesStop
- {
- void Stop();
- }
-
///
/// Used to implement raise/stop/lower/stop from single button
///
@@ -125,7 +92,7 @@ namespace PepperDash.Essentials.Core.Shades
BoolFeedback AllAreAtSceneFeedback { get; }
}
- public interface ICrestronBasicShade : IShadesOpenClosedFeedback, IShadesStop,
+ public interface ICrestronBasicShade : IShadesOpenClosedFeedback,
IShadesStopOrMove, IShadesFeedback, IShadesRaiseLowerFeedback
{
diff --git a/src/PepperDash.Essentials.Devices.Common/Audio/GenericAudioOut.cs b/src/PepperDash.Essentials.Devices.Common/Audio/GenericAudioOut.cs
index 70596904..250b29d5 100644
--- a/src/PepperDash.Essentials.Devices.Common/Audio/GenericAudioOut.cs
+++ b/src/PepperDash.Essentials.Devices.Common/Audio/GenericAudioOut.cs
@@ -15,7 +15,7 @@ namespace PepperDash.Essentials.Devices.Common
///
/// Represents and audio endpoint
///
- public class GenericAudioOut : EssentialsDevice, IRoutingSinkNoSwitching
+ public class GenericAudioOut : EssentialsDevice, IRoutingSink
{
public event SourceInfoChangeHandler CurrentSourceChange;
diff --git a/src/PepperDash.Essentials.Devices.Common/Codec/iHasDirectory.cs b/src/PepperDash.Essentials.Devices.Common/Codec/iHasDirectory.cs
index 1bb08b71..360d111e 100644
--- a/src/PepperDash.Essentials.Devices.Common/Codec/iHasDirectory.cs
+++ b/src/PepperDash.Essentials.Devices.Common/Codec/iHasDirectory.cs
@@ -38,12 +38,6 @@ namespace PepperDash.Essentials.Devices.Common.Codec
void GetDirectoryParentFolderContents();
BoolFeedback CurrentDirectoryResultIsNotDirectoryRoot { get; }
-
- ///
- /// Tracks the directory browse history when browsing beyond the root directory
- ///
- [Obsolete("Please use the Stack-based history instead")]
- List DirectoryBrowseHistory { get; }
}
public interface IHasDirectoryHistoryStack : IHasDirectory
diff --git a/src/PepperDash.Essentials.Devices.Common/Display/ComTcpDisplayBase.cs b/src/PepperDash.Essentials.Devices.Common/Display/ComTcpDisplayBase.cs
deleted file mode 100644
index 84547c1b..00000000
--- a/src/PepperDash.Essentials.Devices.Common/Display/ComTcpDisplayBase.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Crestron.SimplSharp;
-using Crestron.SimplSharpPro;
-using PepperDash.Core;
-using PepperDash.Essentials.Core;
-
-
-namespace PepperDash.Essentials.Devices.Displays
-{
- [Obsolete("Please use TwoWayDisplayBase instead")]
- public abstract class ComTcpDisplayBase : TwoWayDisplayBase
- {
-
- /////
- ///// Sets the communication method for this - swaps out event handlers and output handlers
- /////
- //public IBasicCommunication CommunicationMethod
- //{
- // get { return _CommunicationMethod; }
- // set
- // {
- // if (_CommunicationMethod != null)
- // _CommunicationMethod.BytesReceived -= this.CommunicationMethod_BytesReceived;
- // // Outputs???
- // _CommunicationMethod = value;
- // if (_CommunicationMethod != null)
- // _CommunicationMethod.BytesReceived += this.CommunicationMethod_BytesReceived;
- // // Outputs?
- // }
- //}
- //IBasicCommunication _CommunicationMethod;
-
- public ComTcpDisplayBase(string key, string name)
- : base(key, name)
- {
-
- }
-
-
- //protected abstract void CommunicationMethod_BytesReceived(object sender, GenericCommMethodReceiveBytesArgs args);
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Devices.Common/Power Controllers/DigitalLoggerPropertiesConfig.cs b/src/PepperDash.Essentials.Devices.Common/Power Controllers/DigitalLoggerPropertiesConfig.cs
deleted file mode 100644
index 1fae442b..00000000
--- a/src/PepperDash.Essentials.Devices.Common/Power Controllers/DigitalLoggerPropertiesConfig.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Crestron.SimplSharp;
-
-using PepperDash.Core;
-using PepperDash.Essentials.Core;
-
-namespace PepperDash.Essentials.Devices.Common
-{
- ///
- ///
- ///
- public class DigitalLoggerPropertiesConfig
- {
- public CommunicationMonitorConfig CommunicationMonitorProperties { get; set; }
-
- public ControlPropertiesConfig Control { get; set; }
- public string userName { get; set; }
- public string password { get; set; }
- public string address { get; set; }
- }
-
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Devices.Common/Power Controllers/Digitallogger.cs b/src/PepperDash.Essentials.Devices.Common/Power Controllers/Digitallogger.cs
deleted file mode 100644
index ed885104..00000000
--- a/src/PepperDash.Essentials.Devices.Common/Power Controllers/Digitallogger.cs
+++ /dev/null
@@ -1,356 +0,0 @@
-extern alias Full;
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Crestron.SimplSharp;
-using Crestron.SimplSharpPro.DeviceSupport;
-using PepperDash.Core;
-using PepperDash.Essentials.Core;
-using System.Text.RegularExpressions;
-using Crestron.SimplSharp.Net.Http;
-using Full.Newtonsoft.Json;
-using Full.Newtonsoft.Json.Linq;
-using PepperDash.Essentials.Core.Bridges;
-using PepperDash.Essentials.Core.Config;
-using PepperDash.Essentials;
-
-
-
-namespace PepperDash.Essentials.Devices.Common
-{
- [Obsolete("This Device will be moved to a plugin in a future update")]
- public class DigitalLogger : EssentialsBridgeableDevice
- {
- public IBasicCommunication Communication { get; private set; }
- public CommunicationGather PortGather { get; private set; }
- public StatusMonitorBase CommunicationMonitor { get; private set; }
-
- private HttpClient WebClient;
- public string userName;
- public string password;
- public string address;
- private bool OnlineStatus;
- public BoolFeedback OnlineFeedback;
- //private ushort CurrentPreset;
- public IntFeedback PresetFeedback;
-
- public Dictionary CircuitStatus;
- public uint CircuitCount;
-
- public Dictionary CircuitNameFeedbacks { get; private set; }
- public Dictionary CircuitIsCritical{ get; private set; }
- public Dictionary CircuitState { get; private set; }
-
- // new public Dictionary LevelControlPoints { get; private set; }
- // public List PresetList = new List();
-
- public bool isSubscribed;
-
- private CTimer SubscriptionTimer;
-
- CrestronQueue CommandQueue;
-
- bool CommandQueueInProgress = false;
-
- //new public Dictionary DialerControlPoints { get; private set; }
-
- //new public Dictionary SwitcherControlPoints { get; private set; }
-
- ///
- /// Shows received lines as hex
- ///
- public bool ShowHexResponse { get; set; }
-
- public DigitalLogger(string key, string name, DigitalLoggerPropertiesConfig props) :
- base(key, name)
- {
- CircuitCount = 8;
- this.userName = props.userName;
- this.password = props.password;
- CommandQueue = new CrestronQueue(100);
-
- WebClient = new HttpClient();
- WebClient.UserName = this.userName;
- WebClient.Password = this.password;
- this.address = props.address;
- WebClient.HostAddress = props.address;
-
-
-
- }
-
- public override bool CustomActivate()
- {
- /*
- Communication.Connect();
- CommunicationMonitor.StatusChange += (o, a) => { Debug.Console(2, this, "Communication monitor state: {0}", CommunicationMonitor.Status); };
- CommunicationMonitor.Start();
- */
-
- OnlineFeedback = new BoolFeedback(() => { return OnlineStatus; });
- CircuitStatus = new Dictionary();
- CircuitNameFeedbacks = new Dictionary();
- CircuitIsCritical = new Dictionary();
- CircuitState = new Dictionary();
- for (uint i = 0; i < CircuitCount; i++)
- {
- uint circuit = i;
- CircuitStatus[circuit] = new DigitalLoggerCircuit();
- CircuitNameFeedbacks[circuit] = new StringFeedback(() => {
- if (CircuitStatus[circuit].name != null)
- {
- return CircuitStatus[circuit].name;
- }
- else
- {
- return "";
- }
- });
- CircuitIsCritical[circuit] = new BoolFeedback(() =>
- {
- if (CircuitStatus.ContainsKey(circuit))
- {
- return CircuitStatus[circuit].critical;
- }
- else
- {
- return false;
- }
- });
- CircuitState[circuit] = new BoolFeedback(() =>
- {
- if (CircuitStatus.ContainsKey(circuit))
- {
- return CircuitStatus[circuit].state;
- }
- else
- {
- return false;
- }
- });
- PollCircuit(circuit);
- }
-
- CrestronConsole.AddNewConsoleCommand(SendLine, "send" + Key, "", ConsoleAccessLevelEnum.AccessOperator);
- CrestronConsole.AddNewConsoleCommand(s => Communication.Connect(), "con" + Key, "", ConsoleAccessLevelEnum.AccessOperator);
-
-
-
- return true;
- }
-
- public override void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApiAdvanced bridge)
- {
- var joinMap = new DigitalLoggerJoinMap();
-
- var joinMapSerialized = JoinMapHelper.GetSerializedJoinMapForDevice(joinMapKey);
-
- if (!string.IsNullOrEmpty(joinMapSerialized))
- joinMap = JsonConvert.DeserializeObject(joinMapSerialized);
-
- joinMap.OffsetJoinNumbers(joinStart);
-
- Debug.Console(1, this, "Linking to Trilist '{0}'", trilist.ID.ToString("X"));
- for (uint i = 1; i <= CircuitCount; i++)
- {
- var circuit = i;
- CircuitNameFeedbacks[circuit - 1].LinkInputSig(trilist.StringInput[joinMap.CircuitNames + circuit]);
- CircuitIsCritical[circuit - 1].LinkInputSig(trilist.BooleanInput[joinMap.CircuitIsCritical + circuit]);
- CircuitState[circuit - 1].LinkInputSig(trilist.BooleanInput[joinMap.CircuitState + circuit]);
- trilist.SetSigTrueAction(joinMap.CircuitCycle + circuit, () => CycleCircuit(circuit - 1));
- trilist.SetSigTrueAction(joinMap.CircuitOnCmd + circuit, () => TurnOnCircuit(circuit - 1));
- trilist.SetSigTrueAction(joinMap.CircuitOffCmd + circuit, () => TurnOffCircuit(circuit - 1));
-
- }
- }
-
- void socket_ConnectionChange(object sender, GenericSocketStatusChageEventArgs e)
- {
- Debug.Console(2, this, "Socket Status Change: {0}", e.Client.ClientStatus.ToString());
-
- if (e.Client.IsConnected)
- {
- OnlineStatus = true;
- OnlineFeedback.FireUpdate();
- }
- else
- {
- OnlineStatus = false;
- OnlineFeedback.FireUpdate();
- if (SubscriptionTimer != null)
- {
- SubscriptionTimer.Stop();
- SubscriptionTimer = null;
- }
-
- isSubscribed = false;
- CommandQueue.Clear();
- CommandQueueInProgress = false;
- }
- }
-
- public void PollCircuit(uint circuit)
- {
- try
- {
- string PollCircuitResponse = SendRequest(String.Format("/restapi/relay/outlets/{0}/", circuit));
- CircuitStatus[circuit] = JsonConvert.DeserializeObject(PollCircuitResponse);
- DigitalLoggerCircuit temp = CircuitStatus[circuit];
- Debug.Console(2, this, "DigitalLogger Circuit {0} Name: {1} State:{2}'", circuit, CircuitStatus[circuit].name, CircuitStatus[circuit].state);
- CircuitNameFeedbacks[circuit].FireUpdate();
- CircuitState[circuit].FireUpdate();
- CircuitIsCritical[circuit].FireUpdate();
- }
- catch (Exception e)
- {
- Debug.Console(0, this, "PollCircuit {0}", e);
-
- }
- }
- void Port_LineReceived(string response, HTTP_CALLBACK_ERROR error)
- {
-
-
- }
-
- public string SendRequest(string s)
- {
- HttpClientRequest request = new HttpClientRequest();
- string url = string.Format("http://{0}{1}", this.address, s);
- request.Url = new UrlParser(url);
- HttpClientResponse response = WebClient.Dispatch(request);
- return response.ContentString;
- }
- ///
- /// Sends a command to the DSP (with delimiter appended)
- ///
- /// Command to send
- ///
- public void SendLine(string s)
- {
-
- HttpClientRequest request = new HttpClientRequest();
- string url = string.Format("http://{0}{1}", this.address, s);
- request.Url = new UrlParser(url);
-
- HttpClientResponse response = WebClient.Dispatch(request);
- }
-
- public void CycleCircuit(uint circuit)
- {
- SendLine(String.Format("/outlet?{0}=CCL", circuit));
- //PollCircuit(circuit);
-
- }
-
- public void TurnOnCircuit(uint circuit)
- {
- SendLine(String.Format("/outlet?{0}=ON", circuit));
- //PollCircuit(circuit);
- }
-
- public void TurnOffCircuit(uint circuit)
- {
- SendLine(String.Format("/outlet?{0}=Off", circuit));
- //PollCircuit(circuit);
- }
-
- ///
- /// Adds a command from a child module to the queue
- ///
- /// Command object from child module
- public void EnqueueCommand(QueuedCommand commandToEnqueue)
- {
- CommandQueue.Enqueue(commandToEnqueue);
- //Debug.Console(1, this, "Command (QueuedCommand) Enqueued '{0}'. CommandQueue has '{1}' Elements.", commandToEnqueue.Command, CommandQueue.Count);
-
- if(!CommandQueueInProgress)
- SendNextQueuedCommand();
- }
-
- ///
- /// Adds a raw string command to the queue
- ///
- ///
- public void EnqueueCommand(string command)
- {
- CommandQueue.Enqueue(command);
- //Debug.Console(1, this, "Command (string) Enqueued '{0}'. CommandQueue has '{1}' Elements.", command, CommandQueue.Count);
-
- if (!CommandQueueInProgress)
- SendNextQueuedCommand();
- }
-
- ///
- /// Sends the next queued command to the DSP
- ///
- void SendNextQueuedCommand()
- {
- if (Communication.IsConnected && !CommandQueue.IsEmpty)
- {
- CommandQueueInProgress = true;
-
- if (CommandQueue.Peek() is QueuedCommand)
- {
- QueuedCommand nextCommand = new QueuedCommand();
-
- nextCommand = (QueuedCommand)CommandQueue.Peek();
-
- SendLine(nextCommand.Command);
- }
- else
- {
- string nextCommand = (string)CommandQueue.Peek();
-
- SendLine(nextCommand);
- }
- }
-
- }
-
-
-
- public void CallPreset(ushort presetNumber)
- {
- SendLine(string.Format("Preset.Take = {0}", presetNumber));
- // SendLine("cgp 1");
- }
-
- public class QueuedCommand
- {
- public string Command { get; set; }
- public string AttributeCode { get; set; }
- // public QscDspControlPoint ControlPoint { get; set; }
- }
-
- public class DigitalLoggerCircuit
- {
- public string name;
- public bool locked;
- public bool critical;
- public bool transient_state;
- public bool physical_state;
- //public int cycle_delay;
- public bool state;
- }
-
- }
-
- public class DigitalLoggerFactory : EssentialsDeviceFactory
- {
- public DigitalLoggerFactory()
- {
- TypeNames = new List() { "digitallogger" };
- }
-
- public override EssentialsDevice BuildDevice(DeviceConfig dc)
- {
- Debug.Console(1, "Factory Attempting to create new DigitalLogger Device");
- var props = JsonConvert.DeserializeObject(
- dc.Properties.ToString());
- return new DigitalLogger(dc.Key, dc.Name, props);
- }
- }
-}
\ No newline at end of file
diff --git a/src/PepperDash.Essentials.Devices.Common/SoftCodec/BlueJeansPc.cs b/src/PepperDash.Essentials.Devices.Common/SoftCodec/BlueJeansPc.cs
index 3e17f81d..868e7fca 100644
--- a/src/PepperDash.Essentials.Devices.Common/SoftCodec/BlueJeansPc.cs
+++ b/src/PepperDash.Essentials.Devices.Common/SoftCodec/BlueJeansPc.cs
@@ -13,7 +13,7 @@ using PepperDash.Essentials.Core.Config;
namespace PepperDash.Essentials.Devices.Common.SoftCodec
{
- public class BlueJeansPc : InRoomPc, IRoutingInputs, IRunRouteAction, IRoutingSinkNoSwitching
+ public class BlueJeansPc : InRoomPc, IRoutingInputs, IRunRouteAction, IRoutingSink
{
public RoutingInputPort AnyVideoIn { get; private set; }
@@ -93,9 +93,9 @@ namespace PepperDash.Essentials.Devices.Common.SoftCodec
///
bool DoRoute(SourceRouteListItem route)
{
- IRoutingSinkNoSwitching dest = null;
+ IRoutingSink dest = null;
- dest = DeviceManager.GetDeviceForKey(route.DestinationKey) as IRoutingSinkNoSwitching;
+ dest = DeviceManager.GetDeviceForKey(route.DestinationKey) as IRoutingSink;
if (dest == null)
{
diff --git a/src/PepperDash.Essentials.Devices.Common/VideoCodec/VideoCodecBase.cs b/src/PepperDash.Essentials.Devices.Common/VideoCodec/VideoCodecBase.cs
index 9d8fbce1..1e83ad32 100644
--- a/src/PepperDash.Essentials.Devices.Common/VideoCodec/VideoCodecBase.cs
+++ b/src/PepperDash.Essentials.Devices.Common/VideoCodec/VideoCodecBase.cs
@@ -4,14 +4,11 @@ using System.Linq;
using System.Text;
using Crestron.SimplSharp.CrestronIO;
using Crestron.SimplSharp.Reflection;
-using Crestron.SimplSharp.Ssh;
using Crestron.SimplSharpPro.DeviceSupport;
using Crestron.SimplSharp;
using PepperDash.Core;
using PepperDash.Core.Intersystem;
using PepperDash.Core.Intersystem.Tokens;
-using PepperDash.Core.WebApi.Presets;
-using Crestron.SimplSharp.Reflection;
using PepperDash.Essentials.Core;
using PepperDash.Essentials.Core.Bridges;
using PepperDash.Essentials.Core.Config;
diff --git a/src/PepperDash.Essentials/Devices/Amplifier.cs b/src/PepperDash.Essentials/Devices/Amplifier.cs
index b2725109..dc35de6b 100644
--- a/src/PepperDash.Essentials/Devices/Amplifier.cs
+++ b/src/PepperDash.Essentials/Devices/Amplifier.cs
@@ -11,7 +11,7 @@ using PepperDash.Essentials.Core.Routing;
namespace PepperDash.Essentials
{
- public class Amplifier : EssentialsDevice, IRoutingSinkNoSwitching
+ public class Amplifier : EssentialsDevice, IRoutingSink
{
public event SourceInfoChangeHandler CurrentSourceChange;
diff --git a/src/PepperDash.Essentials/Room/Types/EssentialsDualDisplayRoom.cs b/src/PepperDash.Essentials/Room/Types/EssentialsDualDisplayRoom.cs
index 79b4b7c4..f02420e4 100644
--- a/src/PepperDash.Essentials/Room/Types/EssentialsDualDisplayRoom.cs
+++ b/src/PepperDash.Essentials/Room/Types/EssentialsDualDisplayRoom.cs
@@ -577,13 +577,13 @@ namespace PepperDash.Essentials
IRoutingSink dest = null;
if (route.DestinationKey.Equals("$defaultaudio", StringComparison.OrdinalIgnoreCase))
- dest = DefaultAudioDevice as IRoutingSinkNoSwitching;
+ dest = DefaultAudioDevice as IRoutingSink;
else if (route.DestinationKey.Equals(LeftDisplay.Key, StringComparison.OrdinalIgnoreCase))
dest = LeftDisplay;
else if (route.DestinationKey.Equals(RightDisplay.Key, StringComparison.OrdinalIgnoreCase))
dest = RightDisplay;
else
- dest = DeviceManager.GetDeviceForKey(route.DestinationKey) as IRoutingSinkNoSwitching;
+ dest = DeviceManager.GetDeviceForKey(route.DestinationKey) as IRoutingSink;
if (dest == null)
{
diff --git a/src/PepperDash.Essentials/UIDrivers/Environment Drivers/EssentialsShadeDriver.cs b/src/PepperDash.Essentials/UIDrivers/Environment Drivers/EssentialsShadeDriver.cs
index 9ab9ad54..63b38f9d 100644
--- a/src/PepperDash.Essentials/UIDrivers/Environment Drivers/EssentialsShadeDriver.cs
+++ b/src/PepperDash.Essentials/UIDrivers/Environment Drivers/EssentialsShadeDriver.cs
@@ -76,7 +76,7 @@ namespace PepperDash.Essentials
{
if (ShadeDevice is IShadesOpenCloseStop)
DeviceType = eShadeDeviceType.OpenCloseStop;
- else if (ShadeDevice is IShadesOpenClose)
+ else if (ShadeDevice is IShadesOpenCloseStop)
DeviceType = eShadeDeviceType.OpenClose;
}