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

com.dahuatech.icc.multiinone.face.vo.PersonnelControlRequest Maven / Gradle / Ivy

The newest version!
package com.dahuatech.icc.multiinone.face.vo;

import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.face.model.v202207.channelGroup.ChannelGroupAddBatchRequest;
import com.dahuatech.icc.face.model.v202207.deptGroup.DeptGroupSyncRequest;
import com.dahuatech.icc.face.model.v202207.personInfo.PersonInfoAddRequest;
import com.dahuatech.icc.multiinone.accesscontrol.domain.PersonBatchAdd;
import com.dahuatech.icc.multiinone.vo.BaseRequest;

import java.util.List;

/**
 * program:java-sdk
 *
 * Author: 312013
 * Date:2022-08-12 09:58
 * Description: 人员布控:批量人员添加(包含图像)、人像绑定、人脸布控
 */
public class PersonnelControlRequest extends BaseRequest {
    //添加内部人员时,使用该参数
    private PersonBatchAdd personInfos;
    //添加外部人员时,使用该参数
    private List outerPersonInfo;
    //人像绑定参数
    private BindPersonData bindPersonData;
    //人像批量布控参数
    private ChannelGroupAddBatchData channelGroupAddBatchData;

    public PersonBatchAdd getPersonInfos() {
        return personInfos;
    }

    public void setPersonInfos(PersonBatchAdd personInfos) {
        this.personInfos = personInfos;
    }

    public List getOuterPersonInfo() {
        return outerPersonInfo;
    }

    public void setOuterPersonInfo(List outerPersonInfo) {
        this.outerPersonInfo = outerPersonInfo;
    }

    public BindPersonData getBindPersonData() {
        return bindPersonData;
    }

    public void setBindPersonData(BindPersonData bindPersonData) {
        this.bindPersonData = bindPersonData;
    }

    public ChannelGroupAddBatchData getChannelGroupAddBatchData() {
        return channelGroupAddBatchData;
    }

    public void setChannelGroupAddBatchData(ChannelGroupAddBatchData channelGroupAddBatchData) {
        this.channelGroupAddBatchData = channelGroupAddBatchData;
    }

    public class OuterPersonInfo {
        private String name;
        private Integer sex;
        private String cardtype;
        private String cardid;
        private Long groupid;
        private String birthday;
        private String province;
        private String city;
        private String bankAccount;
        private String facepath;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Integer getSex() {
            return sex;
        }

        public void setSex(Integer sex) {
            this.sex = sex;
        }

        public String getCardtype() {
            return cardtype;
        }

        public void setCardtype(String cardtype) {
            this.cardtype = cardtype;
        }

        public String getCardid() {
            return cardid;
        }

        public void setCardid(String cardid) {
            this.cardid = cardid;
        }

        public Long getGroupid() {
            return groupid;
        }

        public void setGroupid(Long groupid) {
            this.groupid = groupid;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getBankAccount() {
            return bankAccount;
        }

        public void setBankAccount(String bankAccount) {
            this.bankAccount = bankAccount;
        }

        public String getFacepath() {
            return facepath;
        }

        public void setFacepath(String facepath) {
            this.facepath = facepath;
        }

        public PersonInfoAddRequest convertToPersonInfoAddRequest(){
            PersonInfoAddRequest personInfoAddRequest = null;
            personInfoAddRequest = new PersonInfoAddRequest();
            personInfoAddRequest.setBankAccount(this.bankAccount);
            personInfoAddRequest.setBirthday(this.birthday);
            personInfoAddRequest.setCardid(this.cardid);
            personInfoAddRequest.setCardtype(this.cardtype);
            personInfoAddRequest.setCity(this.city);
            personInfoAddRequest.setFacepath(this.facepath);
            personInfoAddRequest.setGroupid(this.groupid);
            personInfoAddRequest.setName(this.name);
            personInfoAddRequest.setProvince(this.province);
            personInfoAddRequest.setSex(this.sex);
            return personInfoAddRequest;
        }
    }

    public class BindPersonData {
        public BindPersonData(){}
        private Long deptId;
        private List groupIdList;
        private boolean cascade;

        public Long getDeptId() {
            return deptId;
        }

        public void setDeptId(Long deptId) {
            this.deptId = deptId;
        }

        public List getGroupIdList() {
            return groupIdList;
        }

        public void setGroupIdList(List groupIdList) {
            this.groupIdList = groupIdList;
        }

        public boolean getCascade() {
            return cascade;
        }

        public void setCascade(boolean cascade) {
            this.cascade = cascade;
        }

        public DeptGroupSyncRequest convertToDeptGroupSyncRequest(){
            DeptGroupSyncRequest deptGroupSyncRequest = null;
            deptGroupSyncRequest = new DeptGroupSyncRequest();
            deptGroupSyncRequest.setCascade(this.getCascade());
            deptGroupSyncRequest.setGroupIdList(this.getGroupIdList());
            deptGroupSyncRequest.setDeptId(this.getDeptId());

            return deptGroupSyncRequest;
        }
    }

    public class ChannelGroupAddBatchData {
        private String groups;
        private String chnId;
        private Integer minSimilarity;
        private List surveyType;
        private Integer dpMinSimilarity;

        public String getGroups() {
            return groups;
        }

        public void setGroups(String groups) {
            this.groups = groups;
        }

        public String getChnId() {
            return chnId;
        }

        public void setChnId(String chnId) {
            this.chnId = chnId;
        }

        public Integer getMinSimilarity() {
            return minSimilarity;
        }

        public void setMinSimilarity(Integer minSimilarity) {
            this.minSimilarity = minSimilarity;
        }

        public List getSurveyType() {
            return surveyType;
        }

        public void setSurveyType(List surveyType) {
            this.surveyType = surveyType;
        }

        public Integer getDpMinSimilarity() {
            return dpMinSimilarity;
        }

        public void setDpMinSimilarity(Integer dpMinSimilarity) {
            this.dpMinSimilarity = dpMinSimilarity;
        }

        public ChannelGroupAddBatchRequest converToChannelGroupAddBatchRequest(){
            ChannelGroupAddBatchRequest channelGroupAddBatchRequest = null;
            channelGroupAddBatchRequest = new ChannelGroupAddBatchRequest();
            channelGroupAddBatchRequest.setChnId(this.getChnId());
            channelGroupAddBatchRequest.setDpMinSimilarity(this.getDpMinSimilarity());
            channelGroupAddBatchRequest.setGroups(this.getGroups());
            channelGroupAddBatchRequest.setMinSimilarity(this.getMinSimilarity());
            channelGroupAddBatchRequest.setSurveyType(this.getSurveyType());

            return channelGroupAddBatchRequest;
        }

    }

    public void businessValid() {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy