mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
removed IHasDspPreset from Tesira Classes
This commit is contained in:
parent
a9524bcc33
commit
d9f891dfb1
3 changed files with 13 additions and 38 deletions
|
|
@ -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();
|
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>
|
/// <summary>
|
||||||
/// Adds a raw string command to the queue
|
/// 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
|
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; }
|
public Dictionary<string, DspControlPoint> LevelControlPoints { get; private set; }
|
||||||
|
|
||||||
|
|
@ -20,7 +20,6 @@ namespace PepperDash.Essentials.Devices.Common.DSP
|
||||||
public DspBase(string key, string name) :
|
public DspBase(string key, string name) :
|
||||||
base(key, name)
|
base(key, name)
|
||||||
{
|
{
|
||||||
Presets = new List<IDspPreset>();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -29,14 +28,6 @@ namespace PepperDash.Essentials.Devices.Common.DSP
|
||||||
// VOIP
|
// VOIP
|
||||||
// Phone dialer
|
// Phone dialer
|
||||||
|
|
||||||
|
|
||||||
public List<IDspPreset> Presets { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public void RecallPreset(IDspPreset preset)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fusion
|
// Fusion
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue