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

com.dahuatech.icc.multiinone.ipms.OccPersonCarAddSDK Maven / Gradle / Ivy

There is a newer version: 1.0.13.7
Show newest version
package com.dahuatech.icc.multiinone.ipms;

import com.dahuatech.hutool.json.JSONObject;
import com.dahuatech.hutool.log.Log;
import com.dahuatech.hutool.log.LogFactory;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.ipms.model.v202208.SDK.OccAddSDK;
import com.dahuatech.icc.ipms.model.v202208.occ.OccAddRequest;
import com.dahuatech.icc.ipms.model.v202208.occ.OccAddResponse;

/**
 * program:java-sdk
 *
 * Author: 312013
 * Date:2022-08-15 10:01
 * Description: 车辆授权:添加人员,添加车辆
 */
public class OccPersonCarAddSDK {
    protected final Log logger = LogFactory.get();

    public OccAddResponse occPersonCarAdd(OccAddRequest request){
        logger.info("OccPersonCarAddSDK,occPersonCarAdd,param:{}",new JSONObject(request).toJSONString(0));
        OccAddResponse occAddResponse = null;


        OccAddSDK occAddSDK = new OccAddSDK();
        occAddResponse = occAddSDK.occAdd(request);

        if(!occAddResponse.isSuccess()){
            logger.error("add person-card fail.");
            return occAddResponse;
        }
        logger.info("add person-card success.");
        return occAddResponse;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy