mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
- adds a config value that mutes the display when the screen is in the up position - screens will now mute/unmute based on their position if the config is set
45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using PepperDash.Essentials.Core.DeviceTypeInterfaces;
|
|
|
|
namespace PepperDash.Essentials.Devices.Common.Shades
|
|
{
|
|
/// <summary>
|
|
/// Represents a ScreenLiftControllerConfigProperties
|
|
/// </summary>
|
|
public class ScreenLiftControllerConfigProperties
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the DisplayDeviceKey
|
|
/// </summary>
|
|
[JsonProperty("displayDeviceKey")]
|
|
public string DisplayDeviceKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Type
|
|
/// </summary>
|
|
[JsonProperty("type")]
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public eScreenLiftControlType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Mode
|
|
/// </summary>
|
|
[JsonProperty("mode")]
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public eScreenLiftControlMode Mode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Relays
|
|
/// </summary>
|
|
[JsonProperty("relays")]
|
|
public Dictionary<string, ScreenLiftRelaysConfig> Relays { get; set; }
|
|
|
|
/// <summary>
|
|
/// Mutes the display when the screen is in the up position
|
|
/// </summary>
|
|
[JsonProperty("muteOnScreenUp")]
|
|
public bool MuteOnScreenUp { get; set; }
|
|
}
|
|
}
|