mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-31 05:14:51 +00:00
Adds initial Shade interfaces and Shade Base Class
This commit is contained in:
@@ -13,11 +13,7 @@ namespace PepperDash.Essentials.Core.Lighting
|
||||
{
|
||||
#region ILightingScenes Members
|
||||
|
||||
public event EventHandler<LightingSceneChangeEventArgs> LightingSceneChange
|
||||
{
|
||||
add { throw new NotImplementedException(); }
|
||||
remove { throw new NotImplementedException(); }
|
||||
}
|
||||
public event EventHandler<LightingSceneChangeEventArgs> LightingSceneChange;
|
||||
|
||||
public List<LightingScene> LightingScenes { get; protected set; }
|
||||
|
||||
@@ -32,14 +28,22 @@ namespace PepperDash.Essentials.Core.Lighting
|
||||
LightingScenes = new List<LightingScene>();
|
||||
}
|
||||
|
||||
|
||||
public abstract void SelectScene(LightingScene scene);
|
||||
|
||||
protected void OnLightingSceneChange()
|
||||
{
|
||||
var handler = LightingSceneChange;
|
||||
if (handler != null)
|
||||
{
|
||||
handler(this, new LightingSceneChangeEventArgs(CurrentLightingScene));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class LightingScene
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public object ID { get; set; }
|
||||
public string ID { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
|
||||
namespace PepperDash.Essentials.Core.Shades
|
||||
{
|
||||
public class Shade Interfaces
|
||||
{
|
||||
}
|
||||
}
|
||||
12
Essentials Core/PepperDashEssentialsBase/Shades/ShadeBase.cs
Normal file
12
Essentials Core/PepperDashEssentialsBase/Shades/ShadeBase.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
|
||||
namespace PepperDash.Essentials.Core.Shades
|
||||
{
|
||||
public class ShadeBase
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user