mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
add some debug statements and fix presets file loading
This commit is contained in:
parent
f8ae6264f7
commit
1ee87c0499
1 changed files with 8 additions and 5 deletions
|
|
@ -10,19 +10,22 @@ namespace PepperDash.Essentials.Core.Presets
|
||||||
public class PresetChannel
|
public class PresetChannel
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty(Required = Required.Always)]
|
[JsonProperty(Required = Required.Always,PropertyName = "name")]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
[JsonProperty(Required = Required.Always)]
|
|
||||||
|
[JsonProperty(Required = Required.Always, PropertyName = "iconUrl")]
|
||||||
public string IconUrl { get; set; }
|
public string IconUrl { get; set; }
|
||||||
[JsonProperty(Required = Required.Always)]
|
|
||||||
|
[JsonProperty(Required = Required.Always, PropertyName = "channel")]
|
||||||
public string Channel { get; set; }
|
public string Channel { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class PresetsList
|
public class PresetsList
|
||||||
{
|
{
|
||||||
[JsonProperty(Required=Required.Always)]
|
[JsonProperty(Required=Required.Always,PropertyName = "name")]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
[JsonProperty(Required = Required.Always)]
|
|
||||||
|
[JsonProperty(Required = Required.Always, PropertyName = "channels")]
|
||||||
public List<PresetChannel> Channels { get; set; }
|
public List<PresetChannel> Channels { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue