mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
Add config properties
Implement ITvPresetsProvider
This commit is contained in:
@@ -23,6 +23,10 @@ namespace PepperDash.Essentials.Room.Config
|
|||||||
[JsonProperty("scheduledEvents")]
|
[JsonProperty("scheduledEvents")]
|
||||||
public List<ScheduledEventConfig> ScheduledEvents;
|
public List<ScheduledEventConfig> ScheduledEvents;
|
||||||
|
|
||||||
|
[JsonProperty("isPrimary")] public bool IsPrimary;
|
||||||
|
|
||||||
|
[JsonProperty("isTvPresetsProvider")] public bool IsTvPresetsProvider;
|
||||||
|
|
||||||
public EssentialsTechRoomConfig()
|
public EssentialsTechRoomConfig()
|
||||||
{
|
{
|
||||||
Displays = new List<string>();
|
Displays = new List<string>();
|
||||||
|
|||||||
@@ -7,13 +7,14 @@ using Newtonsoft.Json.Linq;
|
|||||||
using PepperDash.Core;
|
using PepperDash.Core;
|
||||||
using PepperDash.Essentials.Core;
|
using PepperDash.Essentials.Core;
|
||||||
using PepperDash.Essentials.Core.Config;
|
using PepperDash.Essentials.Core.Config;
|
||||||
|
using PepperDash.Essentials.Core.DeviceTypeInterfaces;
|
||||||
using PepperDash.Essentials.Core.Presets;
|
using PepperDash.Essentials.Core.Presets;
|
||||||
using PepperDash.Essentials.Devices.Common;
|
using PepperDash.Essentials.Devices.Common;
|
||||||
using PepperDash.Essentials.Room.Config;
|
using PepperDash.Essentials.Room.Config;
|
||||||
|
|
||||||
namespace PepperDash.Essentials
|
namespace PepperDash.Essentials
|
||||||
{
|
{
|
||||||
public class EssentialsTechRoom : EssentialsRoomBase
|
public class EssentialsTechRoom : EssentialsRoomBase, ITvPresetsProvider
|
||||||
{
|
{
|
||||||
private readonly EssentialsTechRoomConfig _config;
|
private readonly EssentialsTechRoomConfig _config;
|
||||||
private readonly Dictionary<string, TwoWayDisplayBase> _displays;
|
private readonly Dictionary<string, TwoWayDisplayBase> _displays;
|
||||||
@@ -41,7 +42,7 @@ namespace PepperDash.Essentials
|
|||||||
CreateOrUpdateScheduledEvents();
|
CreateOrUpdateScheduledEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
public DevicePresetsModel TunerPresets
|
public DevicePresetsModel TvPresets
|
||||||
{
|
{
|
||||||
get { return _tunerPresets; }
|
get { return _tunerPresets; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user