removed IHasDspPreset from Tesira Classes

This commit is contained in:
Trevor Payne
2020-10-21 16:59:45 -05:00
parent a9524bcc33
commit d9f891dfb1
3 changed files with 13 additions and 38 deletions

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash_Essentials_Core.Gateways
{
public class CenCn2Controller
{
}
}

View File

@@ -305,26 +305,6 @@ namespace PepperDash.Essentials.Devices.Common.DSP
SendNextQueuedCommand();
}
public void RecallPreset(IDspPreset preset)
{
if (preset == null) return;
var tesiraPreset = preset as TesiraDspPreset;
if (tesiraPreset == null) return;
if (!String.IsNullOrEmpty(tesiraPreset.PresetName))
{
SendLine(String.Format("Device RecallPreset {0}", tesiraPreset.PresetName));
}
if (tesiraPreset.PresetId >= 1000)
{
SendLine(String.Format("Device RecallPreset {0}", tesiraPreset.PresetId));
}
else
{
Debug.Console(0, this, "Preset {0} unable to be recalled, missing identifier", tesiraPreset.Name);
}
}
/// <summary>
/// Adds a raw string command to the queue
@@ -420,12 +400,4 @@ namespace PepperDash.Essentials.Devices.Common.DSP
}
}
public class TesiraDspPreset : IDspPreset
{
public string Name { get; set; }
public readonly string PresetName;
public readonly int PresetId;
}
}

View File

@@ -9,7 +9,7 @@ using PepperDash.Essentials.Core;
namespace PepperDash.Essentials.Devices.Common.DSP
{
public abstract class DspBase : EssentialsDevice, IHasDspPresets
public abstract class DspBase : EssentialsDevice
{
public Dictionary<string, DspControlPoint> LevelControlPoints { get; private set; }
@@ -20,7 +20,6 @@ namespace PepperDash.Essentials.Devices.Common.DSP
public DspBase(string key, string name) :
base(key, name)
{
Presets = new List<IDspPreset>();
}
@@ -29,14 +28,6 @@ namespace PepperDash.Essentials.Devices.Common.DSP
// VOIP
// Phone dialer
public List<IDspPreset> Presets { get; set; }
public void RecallPreset(IDspPreset preset)
{
}
}
// Fusion