mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-27 11:24:55 +00:00
31 lines
803 B
C#
31 lines
803 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace PepperDash.Essentials.Core.Presets
|
|
{
|
|
public class PresetChannel
|
|
{
|
|
|
|
[JsonProperty(Required = Required.Always,PropertyName = "name")]
|
|
public string Name { get; set; }
|
|
|
|
[JsonProperty(Required = Required.Always, PropertyName = "iconUrl")]
|
|
public string IconUrl { get; set; }
|
|
|
|
[JsonProperty(Required = Required.Always, PropertyName = "channel")]
|
|
public string Channel { get; set; }
|
|
}
|
|
|
|
public class PresetsList
|
|
{
|
|
[JsonProperty(Required=Required.Always,PropertyName = "name")]
|
|
public string Name { get; set; }
|
|
|
|
[JsonProperty(Required = Required.Always, PropertyName = "channels")]
|
|
public List<PresetChannel> Channels { get; set; }
|
|
}
|
|
} |