mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-10 18:24:50 +00:00
More progress on relay based shade control
This commit is contained in:
@@ -6,7 +6,18 @@ using Crestron.SimplSharp;
|
||||
|
||||
namespace PepperDash.Essentials.Core.Shades
|
||||
{
|
||||
public class Shade Interfaces
|
||||
{
|
||||
public interface IShades
|
||||
{
|
||||
List<ShadeBase> Shades { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Requirements for a device that implements basic shade control
|
||||
/// </summary>
|
||||
public interface iShadesRaiseLower
|
||||
{
|
||||
void Raise();
|
||||
void Lower();
|
||||
void Stop();
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
|
||||
namespace PepperDash.Essentials.Core.Shades
|
||||
{
|
||||
public class ShadeBase
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
|
||||
using PepperDash.Core;
|
||||
|
||||
namespace PepperDash.Essentials.Core.Shades
|
||||
{
|
||||
public class ShadeController : Device, IShades
|
||||
{
|
||||
public List<ShadeBase> IShades.Shades { get; private set; }
|
||||
|
||||
}
|
||||
|
||||
public abstract class ShadeBase : Device, iShadesRaiseLower
|
||||
{
|
||||
public ShadeBase(string key, string name)
|
||||
: base(key, name)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#region iShadesRaiseLower Members
|
||||
|
||||
public void iShadesRaiseLower.Raise();
|
||||
public void iShadesRaiseLower.Lower();
|
||||
public void iShadesRaiseLower.Stop();
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user