mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
refactor: Remove obsolete interfaces and classes to streamline the codebase
This commit is contained in:
parent
7076eafc21
commit
7bec96e68b
10 changed files with 9 additions and 383 deletions
|
|
@ -1,60 +0,0 @@
|
|||
using System;
|
||||
namespace PepperDash.Essentials.Core.Devices.DeviceTypeInterfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the contract for IDisplayBasic
|
||||
/// </summary>
|
||||
[Obsolete("This interface is no longer used and will be removed in a future version. Please use IDisplay instead.")]
|
||||
public interface IDisplayBasic
|
||||
{
|
||||
/// <summary>
|
||||
/// Sets the input to HDMI 1
|
||||
/// </summary>
|
||||
void InputHdmi1();
|
||||
|
||||
/// <summary>
|
||||
/// Sets the input to HDMI 2
|
||||
/// </summary>
|
||||
void InputHdmi2();
|
||||
|
||||
/// <summary>
|
||||
/// Sets the input to HDMI 3
|
||||
/// </summary>
|
||||
void InputHdmi3();
|
||||
|
||||
/// <summary>
|
||||
/// Sets the input to HDMI 4
|
||||
/// </summary>
|
||||
void InputHdmi4();
|
||||
|
||||
/// <summary>
|
||||
/// Sets the input to DisplayPort 1
|
||||
/// </summary>
|
||||
void InputDisplayPort1();
|
||||
|
||||
/// <summary>
|
||||
/// Sets the input to DVI 1
|
||||
/// </summary>
|
||||
void InputDvi1();
|
||||
|
||||
/// <summary>
|
||||
/// Sets the input to Video 1
|
||||
/// </summary>
|
||||
void InputVideo1();
|
||||
|
||||
/// <summary>
|
||||
/// Sets the input to VGA 1
|
||||
/// </summary>
|
||||
void InputVga1();
|
||||
|
||||
/// <summary>
|
||||
/// Sets the input to VGA 2
|
||||
/// </summary>
|
||||
void InputVga2();
|
||||
|
||||
/// <summary>
|
||||
/// Sets the input to RGB 1
|
||||
/// </summary>
|
||||
void InputRgb1();
|
||||
}
|
||||
}
|
||||
|
|
@ -43,12 +43,6 @@ namespace PepperDash.Essentials.Core
|
|||
/// </summary>
|
||||
public bool InTestMode { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Base Constructor - empty
|
||||
/// </summary>
|
||||
[Obsolete("use constructor with Key parameter. This constructor will be removed in a future version")]
|
||||
protected Feedback() : this(null) { }
|
||||
|
||||
/// <summary>
|
||||
/// Constructor with Key parameter
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,9 @@ namespace PepperDash.Essentials.Core;
|
|||
/// </summary>
|
||||
public class SerialFeedback : Feedback
|
||||
{
|
||||
public override string SerialValue { get { return _SerialValue; } }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string SerialValue { get { return _SerialValue; } }
|
||||
string _SerialValue;
|
||||
|
||||
//public override eCueType Type { get { return eCueType.Serial; } }
|
||||
|
|
@ -25,20 +27,20 @@ public class SerialFeedback : Feedback
|
|||
|
||||
List<StringInputSig> LinkedInputSigs = new List<StringInputSig>();
|
||||
|
||||
public SerialFeedback()
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public SerialFeedback(string key)
|
||||
: base(key)
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void FireUpdate()
|
||||
{
|
||||
throw new NotImplementedException("This feedback type does not use Funcs");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void FireUpdate(string newValue)
|
||||
{
|
||||
_SerialValue = newValue;
|
||||
|
|
@ -46,17 +48,20 @@ public class SerialFeedback : Feedback
|
|||
OnOutputChange(newValue);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void LinkInputSig(StringInputSig sig)
|
||||
{
|
||||
LinkedInputSigs.Add(sig);
|
||||
UpdateSig(sig);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void UnlinkInputSig(StringInputSig sig)
|
||||
{
|
||||
LinkedInputSigs.Remove(sig);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string ToString()
|
||||
{
|
||||
return (InTestMode ? "TEST -- " : "") + SerialValue;
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
using System;
|
||||
using PepperDash.Essentials.Core;
|
||||
|
||||
namespace PepperDash.Essentials.Room.Config;
|
||||
|
||||
/// <summary>
|
||||
/// Configuration class for volume levels in the Essentials room. This is used to configure the volume levels for the master, program, audio call receive, and audio call transmit channels in the room.
|
||||
/// </summary>
|
||||
[Obsolete("This class is being deprecated in favor audio control point lists in the main config. It is recommended to use the DeviceKey property to get the device from the main system and then cast it to the correct type.")]
|
||||
public class EssentialsRoomVolumesConfig
|
||||
{
|
||||
public EssentialsVolumeLevelConfig Master { get; set; }
|
||||
public EssentialsVolumeLevelConfig Program { get; set; }
|
||||
public EssentialsVolumeLevelConfig AudioCallRx { get; set; }
|
||||
public EssentialsVolumeLevelConfig AudioCallTx { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configuration class for a volume level in the Essentials room.
|
||||
/// </summary>
|
||||
public class EssentialsVolumeLevelConfig
|
||||
{
|
||||
public string DeviceKey { get; set; }
|
||||
public string Label { get; set; }
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Helper to get the device associated with key - one timer.
|
||||
/// </summary>
|
||||
[Obsolete("This method references DM CHASSIS Directly and should not be used in the Core library. It is recommended to use the DeviceKey property to get the device from the main system and then cast it to the correct type.")]
|
||||
public IBasicVolumeWithFeedback GetDevice()
|
||||
{
|
||||
throw new NotImplementedException("This method references DM CHASSIS Directly and should not be used in the Core library. It is recommended to use the DeviceKey property to get the device from the main system and then cast it to the correct type.");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.Core.CrestronIO;
|
||||
|
||||
namespace PepperDash.Essentials.Core.Shades;
|
||||
|
||||
/// <summary>
|
||||
/// Base class for shades
|
||||
/// </summary>
|
||||
[Obsolete("Please use PepperDash.Essentials.Devices.Common, this will be removed in 2.1")]
|
||||
public abstract class ShadeBase : EssentialsDevice, IShadesOpenCloseStop
|
||||
{
|
||||
/// <summary>
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
/// <param name="key">key of the shade device</param>
|
||||
/// <param name="name">name of the shade device</param>
|
||||
public ShadeBase(string key, string name)
|
||||
: base(key, name)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#region iShadesOpenClose Members
|
||||
|
||||
/// <summary>
|
||||
/// Opens the shade
|
||||
/// </summary>
|
||||
public abstract void Open();
|
||||
|
||||
/// <summary>
|
||||
/// Stops the shade
|
||||
/// </summary>
|
||||
public abstract void Stop();
|
||||
|
||||
/// <summary>
|
||||
/// Closes the shade
|
||||
/// </summary>
|
||||
public abstract void Close();
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue