mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
adds type for EiscApiAdvanced and builder for EiscApi
This commit is contained in:
parent
44793f0375
commit
204b3a4d4d
1 changed files with 5 additions and 11 deletions
|
|
@ -6,10 +6,11 @@ using Crestron.SimplSharp;
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using PepperDash.Essentials.Core;
|
||||
using PepperDash.Essentials.Core.Bridges;
|
||||
using PepperDash.Essentials.Core.Config;
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.Core.Routing;
|
||||
using PepperDash.Essentials.Core.Bridges;
|
||||
using PepperDash.Essentials.Bridges;
|
||||
using Crestron.SimplSharpPro;
|
||||
using Crestron.SimplSharpPro.EthernetCommunication;
|
||||
|
||||
|
|
@ -21,23 +22,16 @@ namespace PepperDash.Essentials
|
|||
{
|
||||
// ? why is this static JTA 2018-06-13?
|
||||
|
||||
var key = dc.Key;
|
||||
var name = dc.Name;
|
||||
var type = dc.Type;
|
||||
var properties = dc.Properties;
|
||||
var propAnon = new { };
|
||||
|
||||
var typeName = dc.Type.ToLower();
|
||||
var groupName = dc.Group.ToLower();
|
||||
|
||||
//Debug.Console(2, "Name {0}, Key {1}, Type {2}, Properties {3}", name, key, type, properties.ToString());
|
||||
|
||||
if (typeName == "eiscapi")
|
||||
if (typeName == "eiscapiadv" || typeName == "eiscapiadvanced")
|
||||
{
|
||||
return new EiscApi(dc);
|
||||
return new EiscApiAdvanced(dc);
|
||||
}
|
||||
|
||||
return null;
|
||||
return typeName == "eiscapi" ? new EiscApi(dc) : null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue