mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
make Days enum serialize to string
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Crestron.SimplSharp.Scheduler;
|
using Crestron.SimplSharp.Scheduler;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
using PepperDash.Essentials.Core;
|
using PepperDash.Essentials.Core;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Room.Config
|
namespace PepperDash.Essentials.Room.Config
|
||||||
@@ -20,6 +21,7 @@ namespace PepperDash.Essentials.Room.Config
|
|||||||
public string Name;
|
public string Name;
|
||||||
|
|
||||||
[JsonProperty("days")]
|
[JsonProperty("days")]
|
||||||
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
public ScheduledEventCommon.eWeekDays Days;
|
public ScheduledEventCommon.eWeekDays Days;
|
||||||
|
|
||||||
[JsonProperty("time")]
|
[JsonProperty("time")]
|
||||||
|
|||||||
Reference in New Issue
Block a user