78 lines
2.0 KiB
Java
78 lines
2.0 KiB
Java
package org.webrtc;
|
|
|
|
import c.d.b.a.a;
|
|
import java.util.Map;
|
|
public class RTCStats {
|
|
|
|
/* renamed from: id reason: collision with root package name */
|
|
private final String f2883id;
|
|
private final Map<String, Object> members;
|
|
private final long timestampUs;
|
|
private final String type;
|
|
|
|
public RTCStats(long j, String str, String str2, Map<String, Object> map) {
|
|
this.timestampUs = j;
|
|
this.type = str;
|
|
this.f2883id = str2;
|
|
this.members = map;
|
|
}
|
|
|
|
private static void appendValue(StringBuilder sb, Object obj) {
|
|
if (obj instanceof Object[]) {
|
|
Object[] objArr = (Object[]) obj;
|
|
sb.append('[');
|
|
for (int i = 0; i < objArr.length; i++) {
|
|
if (i != 0) {
|
|
sb.append(", ");
|
|
}
|
|
appendValue(sb, objArr[i]);
|
|
}
|
|
sb.append(']');
|
|
} else if (obj instanceof String) {
|
|
sb.append('\"');
|
|
sb.append(obj);
|
|
sb.append('\"');
|
|
} else {
|
|
sb.append(obj);
|
|
}
|
|
}
|
|
|
|
@CalledByNative
|
|
public static RTCStats create(long j, String str, String str2, Map map) {
|
|
return new RTCStats(j, str, str2, map);
|
|
}
|
|
|
|
public String getId() {
|
|
return this.f2883id;
|
|
}
|
|
|
|
public Map<String, Object> getMembers() {
|
|
return this.members;
|
|
}
|
|
|
|
public double getTimestampUs() {
|
|
return (double) this.timestampUs;
|
|
}
|
|
|
|
public String getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder K = a.K("{ timestampUs: ");
|
|
K.append(this.timestampUs);
|
|
K.append(", type: ");
|
|
K.append(this.type);
|
|
K.append(", id: ");
|
|
K.append(this.f2883id);
|
|
for (Map.Entry<String, Object> entry : this.members.entrySet()) {
|
|
K.append(", ");
|
|
K.append(entry.getKey());
|
|
K.append(": ");
|
|
appendValue(K, entry.getValue());
|
|
}
|
|
K.append(" }");
|
|
return K.toString();
|
|
}
|
|
}
|