mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-25 10:24:55 +00:00
59 lines
1.4 KiB
C#
59 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
|
|
using PepperDash.Core;
|
|
|
|
namespace PepperDash.Essentials.Core.Lighting
|
|
{
|
|
/// <summary>
|
|
/// Requirements for a device that implements lighting scene control
|
|
/// </summary>
|
|
public interface ILightingScenes
|
|
{
|
|
event EventHandler<LightingSceneChangeEventArgs> LightingSceneChange;
|
|
|
|
List<LightingScene> LightingScenes { get; }
|
|
|
|
void SelectScene(LightingScene scene);
|
|
|
|
LightingScene CurrentLightingScene { get; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Requirements for a device that implements master raise/lower
|
|
/// </summary>
|
|
public interface ILightingMasterRaiseLower
|
|
{
|
|
void MasterRaise();
|
|
void MasterLower();
|
|
void MasterRaiseLowerStop();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Requiremnts for controlling a lighting load
|
|
/// </summary>
|
|
public interface ILightingLoad
|
|
{
|
|
void SetLoadLevel(int level);
|
|
void Raise();
|
|
void Lower();
|
|
|
|
IntFeedback LoadLevelFeedback { get; }
|
|
BoolFeedback LoadIsOnFeedback { get; }
|
|
}
|
|
|
|
public class LightingSceneChangeEventArgs : EventArgs
|
|
{
|
|
public LightingScene CurrentLightingScene { get; private set; }
|
|
|
|
public LightingSceneChangeEventArgs(LightingScene scene)
|
|
{
|
|
CurrentLightingScene = scene;
|
|
}
|
|
}
|
|
|
|
} |