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

com.dahuatech.icc.multiinone.accesscontrol.domain.PersonBatchAdd Maven / Gradle / Ivy

The newest version!
package com.dahuatech.icc.multiinone.accesscontrol.domain;

import com.dahuatech.icc.brm.model.v202010.person.BrmPersonBatchAddRequest;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.multiinone.Constants;

import java.util.List;

/**
 * program:java-sdk
 *
 * Author: 312013
 * Date:2022-08-08 17:19
 * Description: 人员批量添加数据封装
 */
public class PersonBatchAdd {
    private String service = Constants.service;
    private List personList;

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public List getPersonList() {
        return personList;
    }

    public void setPersonList(List personList) {
        this.personList = personList;
    }

    public BrmPersonBatchAddRequest parseToBrmPersonBatchAddRequest(){
        BrmPersonBatchAddRequest brmPersonBatchAddRequest = null;

        try{
            brmPersonBatchAddRequest = BrmPersonBatchAddRequest.builder().personList(this.getPersonList()).build();
            brmPersonBatchAddRequest.setService(this.getService());
        }catch (ClientException e){
            e.printStackTrace();
        }

        return brmPersonBatchAddRequest;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy