mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-03 06:44:58 +00:00
removed IHasDspPreset from Tesira Classes
This commit is contained in:
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user