mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
35 lines
987 B
C#
35 lines
987 B
C#
using System.Collections.Generic;
|
|
using Crestron.SimplSharp;
|
|
using PepperDash.Core;
|
|
using PepperDash.Essentials.Core;
|
|
|
|
namespace PepperDash_Essentials_Core.Devices
|
|
{
|
|
/// <summary>
|
|
/// Interface for any device that is able to control it'spower and has a configurable reboot time
|
|
/// </summary>
|
|
public interface IHasPowerCycle : IKeyName, IHasPowerControlWithFeedback
|
|
{
|
|
/// <summary>
|
|
/// Delay between power off and power on for reboot
|
|
/// </summary>
|
|
int PowerCycleTimeMs { get;}
|
|
|
|
/// <summary>
|
|
/// Reboot outlet
|
|
/// </summary>
|
|
void PowerCycle();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Interface for any device that contains a collection of IHasPowerReboot Devices
|
|
/// </summary>
|
|
public interface IHasControlledPowerOutlets : IKeyName
|
|
{
|
|
/// <summary>
|
|
/// Collection of IPduOutlets
|
|
/// </summary>
|
|
ReadOnlyDictionary<int, IHasPowerCycle> PduOutlets { get; }
|
|
|
|
}
|
|
} |