mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-03 14:55:05 +00:00
43 lines
990 B
C#
43 lines
990 B
C#
|
|
|
|
using System.Collections.Generic;
|
|
using Crestron.SimplSharp.Scheduler;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using PepperDash.Essentials.Core;
|
|
|
|
namespace PepperDash.Essentials.Room.Config
|
|
{
|
|
public class EssentialsRoomScheduledEventsConfig
|
|
{
|
|
[JsonProperty("scheduledEvents")]
|
|
public List<ScheduledEventConfig> ScheduledEvents;
|
|
}
|
|
|
|
public class ScheduledEventConfig
|
|
{
|
|
[JsonProperty("key")]
|
|
public string Key;
|
|
|
|
[JsonProperty("name")]
|
|
public string Name;
|
|
|
|
[JsonProperty("days")]
|
|
public ScheduledEventCommon.eWeekDays Days;
|
|
|
|
[JsonProperty("time")]
|
|
public string Time;
|
|
|
|
[JsonProperty("actions")]
|
|
public List<DeviceActionWrapper> Actions;
|
|
|
|
[JsonProperty("persistent")]
|
|
public bool Persistent;
|
|
|
|
[JsonProperty("acknowledgeable")]
|
|
public bool Acknowledgeable;
|
|
|
|
[JsonProperty("enable")]
|
|
public bool Enable;
|
|
}
|
|
} |