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