using System.Collections.Generic; using System.ServiceModel; using System.ServiceModel.Web; namespace HAILogger { [ServiceContract] public interface IHAIService { [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void Subscribe(SubscribeContract contract); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] List ListAreas(); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] AreaContract GetArea(ushort id); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] List ListZonesContact(); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] List ListZonesMotion(); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] List ListZonesWater(); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] List ListZonesSmoke(); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] List ListZonesCO(); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] List ListZonesTemp(); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] ZoneContract GetZone(ushort id); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] List ListUnits(); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] UnitContract GetUnit(ushort id); [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void SetUnit(CommandContract unit); [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void SetUnitKeypadPress(CommandContract unit); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] List ListThermostats(); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] ThermostatContract GetThermostat(ushort id); [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void SetThermostatCoolSetpoint(CommandContract unit); [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void SetThermostatHeatSetpoint(CommandContract unit); [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void SetThermostatMode(CommandContract unit); [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void SetThermostatFanMode(CommandContract unit); [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void SetThermostatHold(CommandContract unit); [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] List ListButtons(); [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void PushButton(CommandContract unit); } }