com.volcengine.service.rtc.RtcConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.service.rtc;
import com.volcengine.helper.Const;
import com.volcengine.model.ApiInfo;
import com.volcengine.model.Credentials;
import com.volcengine.model.ServiceInfo;
import org.apache.http.Header;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicHeader;
import org.apache.http.message.BasicNameValuePair;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
public class RtcConfig {
public static ServiceInfo serviceInfo = new ServiceInfo(
new HashMap() {
{
put(Const.CONNECTION_TIMEOUT, 5000);
put(Const.SOCKET_TIMEOUT, 5000);
put(Const.Host, "open.volcengineapi.com");
put(Const.Header, new ArrayList() {
{
add(new BasicHeader("Accept", "application/json"));
}
});
put(Const.Credentials, new Credentials(Const.REGION_CN_NORTH_1, "rtc"));
}
}
);
public static Map apiInfoList = new HashMap() {
{
put(Const.ListRooms, new ApiInfo(
new HashMap() {
{
put(Const.Method, "get");
put(Const.Path, "/");
put(Const.Query, new ArrayList() {
{
add(new BasicNameValuePair("Action", Const.ListRooms));
add(new BasicNameValuePair("Version", "2020-12-01"));
}
});
}
}
));
put(Const.ListIndicators, new ApiInfo(
new HashMap() {
{
put(Const.Method, "post");
put(Const.Path, "/");
put(Const.Query, new ArrayList() {
{
add(new BasicNameValuePair("Action", Const.ListIndicators));
add(new BasicNameValuePair("Version", "2020-12-01"));
}
});
}
}
));
}
};
}