初始化CRICS
This commit is contained in:
30
Service/ILightControlManager.cs
Normal file
30
Service/ILightControlManager.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Domain;
|
||||
|
||||
namespace Service
|
||||
{
|
||||
public interface ILightControlManager
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用场景到指定主机
|
||||
/// </summary>
|
||||
/// <param name="host">主机</param>
|
||||
/// <param name="scene">场景</param>
|
||||
/// <param name="takeInverse">是否取反</param>
|
||||
void ApplyScene(Host host, RoomTypeScene scene, bool takeInverse = false);
|
||||
|
||||
/// <summary>
|
||||
/// 批量控制设备
|
||||
/// </summary>
|
||||
/// <param name="host"></param>
|
||||
/// <param name="devices"></param>
|
||||
void AllDeviceControl(Host host, List<RCUHost.Protocols.Device> devices);
|
||||
|
||||
|
||||
void ApplyScene_Repeat(string Key,Host host, RoomTypeScene scene, bool takeInverse = false);
|
||||
void AllDeviceControl_Repeat(string Key,Host host, List<RCUHost.Protocols.Device> devices);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user