mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-26 19:04:47 +00:00
refactor: mark existing PDU interfaces in PepperDash_Essentials_Core.Devices as obsolete refactor: replicate existing PDU interfaces in PepperDash.Essentials.Core
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using System;
|
|
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>
|
|
[Obsolete("PepperDash_Essentials_Core.Devices is Deprecated - use PepperDash.Essentials.Core")]
|
|
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>
|
|
[Obsolete("PepperDash_Essentials_Core.Devices is Deprecated - use PepperDash.Essentials.Core")]
|
|
public interface IHasControlledPowerOutlets : IKeyName
|
|
{
|
|
/// <summary>
|
|
/// Collection of IPduOutlets
|
|
/// </summary>
|
|
ReadOnlyDictionary<int, IHasPowerCycle> PduOutlets { get; }
|
|
|
|
}
|
|
} |