com.dahuatech.icc.electricity.model.v202208.airConditioner.ControlMultiRequest Maven / Gradle / Ivy
The newest version!
package com.dahuatech.icc.electricity.model.v202208.airConditioner;
import com.dahuatech.hutool.http.Method;
import com.dahuatech.icc.common.ParamValidEnum;
import com.dahuatech.icc.electricity.constant.ElectricityConstant;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.oauth.exception.BusinessException;
import com.dahuatech.icc.oauth.http.AbstractIccRequest;
import com.dahuatech.icc.oauth.model.v202010.HttpConfigInfo;
import java.util.List;
/**
* program:java-sdk
*
* @Author: 355079
* @Date:2022-08-23 11:43
* @Description: 批量设置空调属性
*/
public class ControlMultiRequest extends AbstractIccRequest {
private List channelCodeList;
private Integer powerControl;
private Integer temperatureControl;
private Integer modeControl;
private Integer windSpeedControl;
public List getChannelCodeList() {
return channelCodeList;
}
public void setChannelCodeList(List channelCodeList) {
putBodyParameter("channelCodeList",channelCodeList);
this.channelCodeList = channelCodeList;
}
public Integer getPowerControl() {
return powerControl;
}
public void setPowerControl(Integer powerControl) {
putBodyParameter("powerControl",powerControl);
this.powerControl = powerControl;
}
public Integer getTemperatureControl() {
return temperatureControl;
}
public void setTemperatureControl(Integer temperatureControl) {
putBodyParameter("temperatureControl",temperatureControl);
this.temperatureControl = temperatureControl;
}
public Integer getModeControl() {
return modeControl;
}
public void setModeControl(Integer modeControl) {
putBodyParameter("modeControl",modeControl);
this.modeControl = modeControl;
}
public Integer getWindSpeedControl() {
return windSpeedControl;
}
public void setWindSpeedControl(Integer windSpeedControl) {
putBodyParameter("windSpeedControl",windSpeedControl);
this.windSpeedControl = windSpeedControl;
}
public ControlMultiRequest() throws ClientException {
super(ElectricityConstant.url(ElectricityConstant.CONTROL_MULTI), Method.POST);
}
public ControlMultiRequest(HttpConfigInfo httpConfigInfo, String url, Method method) throws ClientException {
super(httpConfigInfo.getPrefixUrl() + url, method, Boolean.TRUE);
}
@Override
public Class getResponseClass() {
return ControlMultiResponse.class;
}
public void businessValid() {
if (channelCodeList==null) {
throw new BusinessException(ParamValidEnum.PARAM_NOT_EMPTY_ERROR.getCode(), ParamValidEnum.PARAM_NOT_EMPTY_ERROR.getErrMsg(), "channelCodeList");
}
}
}