mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 12:37:07 +00:00
feat: Enhance layout and window configuration classes
Added `LayoutType` and `Windows` properties to the `LayoutInfo` class. Introduced a new `WindowConfig` class with `Label` and `Input` properties to represent window configurations within a layout.
This commit is contained in:
parent
2c5cae9f41
commit
f3159738ce
1 changed files with 31 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
||||||
public class LayoutInfo
|
public class LayoutInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The display name for the layout
|
/// The name of the layout.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("layoutName")]
|
[JsonProperty("layoutName")]
|
||||||
public string LayoutName { get; set; }
|
public string LayoutName { get; set; }
|
||||||
|
|
@ -66,5 +66,35 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("layoutIndex")]
|
[JsonProperty("layoutIndex")]
|
||||||
public int LayoutIndex { get; set; }
|
public int LayoutIndex { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The type of the layout, which can be "single", "double", "triple", or "quad".
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("layoutType")]
|
||||||
|
public string LayoutType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A dictionary of window configurations for the layout, keyed by window ID.
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("windows")]
|
||||||
|
public Dictionary<uint, WindowConfig> Windows { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Represents the configuration of a window within a layout on a screen.
|
||||||
|
/// </summary>
|
||||||
|
public class WindowConfig
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The display label for the window
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("label")]
|
||||||
|
public string Label { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The input for the window
|
||||||
|
/// </summary>
|
||||||
|
[JsonProperty("input")]
|
||||||
|
public string Input { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue