Shandong video conference v3.2.10版本的 MD5 值为:e9e908f971313b4c4bca5737f96781ef
以下内容为反编译后的 a.java 源代码,内容仅作参考
package io.xylink.rtc.internal.k1;
import android.text.TextUtils;
import com.ainemo.android.business.rest.BusinessConst;
import com.ainemo.shared.call.CallConst;
import io.xylink.rtc.internal.model.RemoteUri;
import java.net.URI;
import java.util.Locale;
import java.util.concurrent.atomic.AtomicReference;
import okhttp3.HttpUrl;
public class a {
private static final String A = "cloudmeeting/validation";
private static final String B = "recording/authorization";
private static final String C = "charge/storage";
private static final String D = "%s/websocket/message?securityKey=%s&sigver=%s";
private static final AtomicReference<String> E = new AtomicReference<>("");
private static final AtomicReference<String> F = new AtomicReference<>("");
private static long G = 0;
private static final String a = "api/rest/v1/en";
private static final String f20315b = "api/rest/external/v1";
private static final String f20316c = "api/rest/v2/en";
private static final String f20317d = "page/api/rest/v2";
private static final String f20318e = "api/rest/v3/en";
private static final String f20319f = "api/rest/external/v3";
private static final String f20320g = "api/rest/clientConfg/v3";
private static final String f20321h = "api/rest/v4/en";
private static final String f20322i = "api/rest/uss/v4/en";
private static final String f20323j = "api/rest/v5/en";
private static final String f20324k = "sdk/autoRegisterAndLogin";
private static final String l = "sdk/login";
private static final String m = "api/rest/v3/en/sdk/%d/logout";
private static final String n = "enterprise/quickLogin/sdk";
private static final String o = "user";
private static final String p = "getUserServerConfig";
private static final String q = "sdk/callUrlInfo";
private static final String r = "face/userInfo";
private static final String s = "face/batch/userInfo";
private static final String t = "/api/rest/v1/log/standardLog";
private static final String u = "networktopology";
private static final String v = "/api/rest/v1/meetingroom/conferenceNumber/password";
private static final String w = "userprofile";
private static final String x = "handup";
private static final String y = "handdown";
private static final String z = "mute";
public static void a(long j2) {
G = j2;
}
public static String b(String str, long j2) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("api/rest/v3/en").addPathSegment(o).addPathSegment(String.valueOf(j2)).addPathSegment("config").addQueryParameter("securityKey", str).build().toString();
}
public static String c(String str, String str2, String str3) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("page/api/rest/v2").addPathSegment(x).addQueryParameter("meetingId", str).addQueryParameter("conferenceNo", str2).addQueryParameter(CallConst.KEY_MPVC, str3).addQueryParameter("di", RemoteUri.generateUri(String.valueOf(G), "SOFT")).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String d(String str) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("api/rest/external/v1").addEncodedPathSegments(n).addEncodedQueryParameter("extId", str).build().toString();
}
public static String e() {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("api/rest/v3/en").addEncodedPathSegments(l).build().toString();
}
public static String f(String str) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments(f20319f).addEncodedPathSegments(s).addQueryParameter("enterpriseId", str).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String g(String str) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("api/rest/clientConfg/v3").addPathSegment(p).addQueryParameter("securityKey", str).build().toString();
}
public static void h(String str) {
F.set(str);
}
public static void i(String str) {
E.set(str);
}
public static String a(String str, String str2, String str3, String str4) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("api/rest/v1/en").addEncodedPathSegments(f20324k).addQueryParameter("extId", str).addQueryParameter("displayName", str2).addQueryParameter("externalUserId", str3).addQueryParameter("countryCode", str4).build().toString();
}
public static String e(String str) {
if (TextUtils.isEmpty(str)) {
str = "https://log.xylink.com";
}
return ((HttpUrl) a(HttpUrl.parse(str))).newBuilder().addEncodedPathSegments(t).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String d() {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments(String.format(Locale.US, m, Long.valueOf(G))).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String b() {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments(f20322i).addEncodedPathSegments(A).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String a(String str, String str2, String str3) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("page/api/rest/v2").addPathSegment(z).addQueryParameter("meetingId", str).addQueryParameter("conferenceNo", str2).addQueryParameter(CallConst.KEY_MPVC, str3).addQueryParameter("di", RemoteUri.generateUri(String.valueOf(G), "SOFT")).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String c(String str) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("api/rest/v3/en").addEncodedPathSegments(C).addQueryParameter(BusinessConst.KEY_RECORDING_URL, str).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String b(String str, String str2, String str3) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("page/api/rest/v2").addPathSegment(y).addQueryParameter("meetingId", str).addQueryParameter("conferenceNo", str2).addQueryParameter(CallConst.KEY_MPVC, str3).addQueryParameter("di", RemoteUri.generateUri(String.valueOf(G), "SOFT")).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String c() {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("api/rest/v3/en").addEncodedPathSegments(u).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String a(String str) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("api/rest/v3/en").addEncodedPathSegments(q).addQueryParameter("number", str).addQueryParameter("areaCode", "").addQueryParameter("securityKey", F.get()).build().toString();
}
public static String b(String str) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("api/rest/v3/en").addEncodedPathSegments(B).addQueryParameter(BusinessConst.KEY_CONF_NUMBER, str).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String a(String str, long j2) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments(f20319f).addEncodedPathSegments(r).addQueryParameter("enterpriseId", str).addQueryParameter("faceUserId", String.valueOf(j2)).addQueryParameter("securityKey", F.get()).build().toString();
}
public static io.xylink.rtc.internal.socket.a b(String str, String str2) {
io.xylink.rtc.internal.socket.a aVar = new io.xylink.rtc.internal.socket.a();
aVar.a(URI.create(String.format(D, str2, F, str)));
return aVar;
}
public static String a(String str, String str2) {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments(v).addEncodedPathSegment(str).addQueryParameter("password", str2).addQueryParameter("securityKey", F.get()).build().toString();
}
public static String a() {
return ((HttpUrl) a(HttpUrl.parse(E.get()))).newBuilder().addEncodedPathSegments("api/rest/v3/en").addEncodedPathSegment(w).addQueryParameter("securityKey", F.get()).build().toString();
}
public static <T> T a(T t2) {
if (t2 != null) {
return t2;
}
throw new IllegalArgumentException("cannot create uri");
}
}