mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-12 19:24:53 +00:00
fix: add nullable props where necessary
This commit is contained in:
@@ -23,16 +23,16 @@ namespace PepperDash.Essentials.Core
|
||||
public string ProjectName { get; set; }
|
||||
|
||||
[JsonProperty("showVolumeGauge", NullValueHandling = NullValueHandling.Ignore)]
|
||||
public bool ShowVolumeGauge { get; set; }
|
||||
public bool? ShowVolumeGauge { get; set; }
|
||||
|
||||
[JsonProperty("usesSplashPage", NullValueHandling = NullValueHandling.Ignore)]
|
||||
public bool UsesSplashPage { get; set; }
|
||||
public bool? UsesSplashPage { get; set; }
|
||||
|
||||
[JsonProperty("showDate", NullValueHandling = NullValueHandling.Ignore)]
|
||||
public bool ShowDate { get; set; }
|
||||
public bool? ShowDate { get; set; }
|
||||
|
||||
[JsonProperty("showTime", NullValueHandling = NullValueHandling.Ignore)]
|
||||
public bool ShowTime { get; set; }
|
||||
public bool? ShowTime { get; set; }
|
||||
|
||||
[JsonProperty("setup", NullValueHandling = NullValueHandling.Ignore)]
|
||||
public UiSetupPropertiesConfig Setup { get; set; }
|
||||
@@ -41,13 +41,13 @@ namespace PepperDash.Essentials.Core
|
||||
public string HeaderStyle { get; set; }
|
||||
|
||||
[JsonProperty("includeInFusionRoomHealth", NullValueHandling = NullValueHandling.Ignore)]
|
||||
public bool IncludeInFusionRoomHealth { get; set; }
|
||||
public bool? IncludeInFusionRoomHealth { get; set; }
|
||||
|
||||
[JsonProperty("screenSaverTimeoutMin", NullValueHandling = NullValueHandling.Ignore)]
|
||||
public uint ScreenSaverTimeoutMin { get; set; }
|
||||
public uint? ScreenSaverTimeoutMin { get; set; }
|
||||
|
||||
[JsonProperty("screenSaverMovePositionIntervalMs", NullValueHandling = NullValueHandling.Ignore)]
|
||||
public uint ScreenSaverMovePositionIntervalMs { get; set; }
|
||||
public uint? ScreenSaverMovePositionIntervalMs { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -55,17 +55,20 @@ namespace PepperDash.Essentials.Core
|
||||
/// Defaults to 5
|
||||
/// </summary>
|
||||
[JsonProperty("sourcesOverflowCount", NullValueHandling = NullValueHandling.Ignore)]
|
||||
public int SourcesOverflowCount { get; set; }
|
||||
public int? SourcesOverflowCount { get; set; }
|
||||
|
||||
public CrestronTouchpanelPropertiesConfig()
|
||||
public CrestronTouchpanelPropertiesConfig() : this(false) { }
|
||||
|
||||
public CrestronTouchpanelPropertiesConfig(bool setDefaultValues = false)
|
||||
{
|
||||
if(!setDefaultValues) { return; }
|
||||
SourcesOverflowCount = 5;
|
||||
HeaderStyle = CrestronTouchpanelPropertiesConfig.Habanero;
|
||||
HeaderStyle = Habanero;
|
||||
|
||||
// Default values
|
||||
ScreenSaverTimeoutMin = 5;
|
||||
ScreenSaverMovePositionIntervalMs = 15000;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// "habanero"
|
||||
|
||||
Reference in New Issue
Block a user