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

com.tencentcloudapi.common.CommonClient Maven / Gradle / Ivy

There is a newer version: 3.1.1108
Show newest version
package com.tencentcloudapi.common;

import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.profile.ClientProfile;

import java.lang.reflect.Type;

public class CommonClient extends AbstractClient {
    public CommonClient(String productName, String version, Credential credential, String region) {
        this(productName, version, credential, region, new ClientProfile());
    }

    public CommonClient(String productName, String version,
                        Credential credential, String region, ClientProfile profile) {
        super(productName + ".tencentcloudapi.com", version, credential, region, profile);
    }

    public String commonRequest(AbstractModel req, String actionName) throws TencentCloudSDKException {
        return internalRequest(req, actionName);
    }

    public  T commonRequest(AbstractModel req, String actionName, Class typeOfT) throws TencentCloudSDKException {
        return internalRequest(req, actionName, typeOfT);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy