mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
Adds ReconfigurableBridgeableDevice base class
This commit is contained in:
@@ -3,8 +3,9 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Crestron.SimplSharp;
|
using Crestron.SimplSharp;
|
||||||
|
using Crestron.SimplSharpPro.DeviceSupport;
|
||||||
using PepperDash.Core;
|
using PepperDash.Core;
|
||||||
|
using PepperDash.Essentials.Core.Bridges;
|
||||||
using PepperDash.Essentials.Core.Config;
|
using PepperDash.Essentials.Core.Config;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Core.Devices
|
namespace PepperDash.Essentials.Core.Devices
|
||||||
@@ -18,7 +19,7 @@ namespace PepperDash.Essentials.Core.Devices
|
|||||||
|
|
||||||
public DeviceConfig Config { get; private set; }
|
public DeviceConfig Config { get; private set; }
|
||||||
|
|
||||||
public ReconfigurableDevice(DeviceConfig config)
|
protected ReconfigurableDevice(DeviceConfig config)
|
||||||
: base(config.Key)
|
: base(config.Key)
|
||||||
{
|
{
|
||||||
SetNameHelper(config);
|
SetNameHelper(config);
|
||||||
@@ -60,4 +61,13 @@ namespace PepperDash.Essentials.Core.Devices
|
|||||||
ConfigWriter.UpdateDeviceConfig(config);
|
ConfigWriter.UpdateDeviceConfig(config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public abstract class ReconfigurableBridgableDevice : ReconfigurableDevice, IBridgeAdvanced
|
||||||
|
{
|
||||||
|
protected ReconfigurableBridgableDevice(DeviceConfig config) : base(config)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApi bridge);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user