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

com.dahuatech.icc.assesscontrol.model.v202103.doorPlan.TimeQuantumDelRequest Maven / Gradle / Ivy

There is a newer version: 1.0.13.10
Show newest version
package com.dahuatech.icc.assesscontrol.model.v202103.doorPlan;

import com.dahuatech.hutool.http.Method;
import com.dahuatech.icc.assesscontrol.constant.AccessControlConstant;
import com.dahuatech.icc.assesscontrol.constant.ParamConstant;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.oauth.exception.BusinessException;
import com.dahuatech.icc.oauth.http.AbstractIccRequest;
import com.dahuatech.icc.util.CollectionUtil;

import java.util.List;

/**
 * 删除开门计划
 *
 * @author 237417
 */
public class TimeQuantumDelRequest extends AbstractIccRequest {
    /** 开门计划ID */
    private List ids;
    /*--------以上必填-----*/

    public TimeQuantumDelRequest(Builder builder) {
        super(AccessControlConstant.url(AccessControlConstant.ASSESS_CONTROL_URL_TIME_QUANTUM_DEL_POST), Method.POST);
        this.ids = builder.ids;
        putBodyParameter("ids",ids);
    }

    public TimeQuantumDelRequest(){
        super(AccessControlConstant.url(AccessControlConstant.ASSESS_CONTROL_URL_TIME_QUANTUM_DEL_POST), Method.POST);
    }

    public static Builder builder() {
        return new Builder();
    }

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

    public List getIds() {
        return ids;
    }

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

    public static class Builder {
        /** 开门计划ID */
        private List ids;

        public Builder id(List ids) {
            this.ids = ids;
            return this;
        }

        public TimeQuantumDelRequest build() throws ClientException {
            return new TimeQuantumDelRequest(this);
        }
    }
    public void businessValid() {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy