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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue