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

cn.felord.api.CallCenterManager Maven / Gradle / Ivy

There is a newer version: 1.2.8
Show newest version
/*
 *  Copyright (c) 2023. felord.cn
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *       https://www.apache.org/licenses/LICENSE-2.0
 *  Website:
 *       https://felord.cn
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package cn.felord.api;

/**
 * 微信客服
 *
 * @author dax
 * @since 2021 /7/26 13:42
 */
public class CallCenterManager {
    private final WorkWeChatApiClient workWeChatApiClient;

    /**
     * Instantiates a new Call center manager.
     *
     * @param workWeChatApiClient the work we chat api client
     */
    CallCenterManager(WorkWeChatApiClient workWeChatApiClient) {
        this.workWeChatApiClient = workWeChatApiClient;
    }

    /**
     * 客服账号管理
     *
     * @return the service account manager api
     */
    public KfAccountApi kfAccountApi() {
        return this.workWeChatApiClient.retrofit().create(KfAccountApi.class);
    }

    /**
     * 接待人员管理
     *
     * @return the kf servicer api
     */
    public KfServicerApi kfServicerApi() {
        return this.workWeChatApiClient.retrofit().create(KfServicerApi.class);
    }

    /**
     * 会话分配与消息收发
     *
     * @return the kf session api
     */
    public KfSessionApi kfSessionApi() {
        return this.workWeChatApiClient.retrofit().create(KfSessionApi.class);
    }

    /**
     * 客服升级服务
     *
     * @return the kf upgrade api
     */
    public KfUpgradeApi kfUpgradeApi() {
        return this.workWeChatApiClient.retrofit().create(KfUpgradeApi.class);
    }

    /**
     * 客服统计管理
     *
     * @return the kf statistic api
     */
    public KfStatisticApi kfStatisticApi() {
        return this.workWeChatApiClient.retrofit().create(KfStatisticApi.class);
    }

    /**
     * 微信客服-机器人-知识库
     *
     * @return the kf knowledge api
     */
    public KfKnowledgeApi kfKnowledgeApi() {
        return this.workWeChatApiClient.retrofit().create(KfKnowledgeApi.class);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy