All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dahuatech.icc.cirs.model.v202209.screenResolution.DeleteScreenResolutionRequest Maven / Gradle / Ivy

There is a newer version: 1.0.13.7
Show newest version
package com.dahuatech.icc.cirs.model.v202209.screenResolution;

import com.dahuatech.hutool.http.Method;
import com.dahuatech.icc.cirs.constant.CirsConstant;
import com.dahuatech.icc.common.ParamValidEnum;
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 com.dahuatech.icc.util.CollectionUtil;

import java.util.List;

/**
 * program:java-sdk
 *
 * @Author: 355079
 * @Date:2022-09-05 16:10
 * @Description:
 */
public class DeleteScreenResolutionRequest extends AbstractIccRequest {
    private List ids;

    public List getIds() {
        return ids;
    }

    public void setIds(List ids) {
        putBodyParameter("ids",ids);
        this.ids = ids;
    }

    public DeleteScreenResolutionRequest() throws ClientException {
        super(CirsConstant.url(CirsConstant.DELETE_SCREEN_RESOLUTION), Method.POST);
    }

    public DeleteScreenResolutionRequest(HttpConfigInfo httpConfigInfo, String url, Method method) throws ClientException {
        super(httpConfigInfo.getPrefixUrl() + url, method, Boolean.TRUE);
    }

    @Override
    public Class getResponseClass() {
        return DeleteScreenResolutionResponse.class;
    }

    public void businessValid() {
        if(CollectionUtil.isEmpty(ids)||ids.size()==0){
            throw new BusinessException(ParamValidEnum.PARAM_NOT_EMPTY_ERROR.getCode(), ParamValidEnum.PARAM_NOT_EMPTY_ERROR.getErrMsg(), "x");
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy