156 lines
4.9 KiB
Java
156 lines
4.9 KiB
Java
package co.discord.media_engine.internal;
|
|
|
|
import c.d.b.a.a;
|
|
import co.discord.media_engine.ReceiverReport;
|
|
import d0.z.d.m;
|
|
import java.util.Arrays;
|
|
/* compiled from: NativeStatistics.kt */
|
|
public final class Transport {
|
|
private final int decryptionFailures;
|
|
private final String localAddress;
|
|
private final float maxPaddingBitrate;
|
|
private final float pacerDelay;
|
|
private final ReceiverReport[] receiverReports;
|
|
private final int rtt;
|
|
private final int sendBandwidth;
|
|
|
|
public Transport(int i, float f, float f2, int i2, int i3, String str, ReceiverReport[] receiverReportArr) {
|
|
m.checkNotNullParameter(str, "localAddress");
|
|
this.decryptionFailures = i;
|
|
this.maxPaddingBitrate = f;
|
|
this.pacerDelay = f2;
|
|
this.rtt = i2;
|
|
this.sendBandwidth = i3;
|
|
this.localAddress = str;
|
|
this.receiverReports = receiverReportArr;
|
|
}
|
|
|
|
public static /* synthetic */ Transport copy$default(Transport transport, int i, float f, float f2, int i2, int i3, String str, ReceiverReport[] receiverReportArr, int i4, Object obj) {
|
|
if ((i4 & 1) != 0) {
|
|
i = transport.decryptionFailures;
|
|
}
|
|
if ((i4 & 2) != 0) {
|
|
f = transport.maxPaddingBitrate;
|
|
}
|
|
if ((i4 & 4) != 0) {
|
|
f2 = transport.pacerDelay;
|
|
}
|
|
if ((i4 & 8) != 0) {
|
|
i2 = transport.rtt;
|
|
}
|
|
if ((i4 & 16) != 0) {
|
|
i3 = transport.sendBandwidth;
|
|
}
|
|
if ((i4 & 32) != 0) {
|
|
str = transport.localAddress;
|
|
}
|
|
if ((i4 & 64) != 0) {
|
|
receiverReportArr = transport.receiverReports;
|
|
}
|
|
return transport.copy(i, f, f2, i2, i3, str, receiverReportArr);
|
|
}
|
|
|
|
public final int component1() {
|
|
return this.decryptionFailures;
|
|
}
|
|
|
|
public final float component2() {
|
|
return this.maxPaddingBitrate;
|
|
}
|
|
|
|
public final float component3() {
|
|
return this.pacerDelay;
|
|
}
|
|
|
|
public final int component4() {
|
|
return this.rtt;
|
|
}
|
|
|
|
public final int component5() {
|
|
return this.sendBandwidth;
|
|
}
|
|
|
|
public final String component6() {
|
|
return this.localAddress;
|
|
}
|
|
|
|
public final ReceiverReport[] component7() {
|
|
return this.receiverReports;
|
|
}
|
|
|
|
public final Transport copy(int i, float f, float f2, int i2, int i3, String str, ReceiverReport[] receiverReportArr) {
|
|
m.checkNotNullParameter(str, "localAddress");
|
|
return new Transport(i, f, f2, i2, i3, str, receiverReportArr);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof Transport)) {
|
|
return false;
|
|
}
|
|
Transport transport = (Transport) obj;
|
|
return this.decryptionFailures == transport.decryptionFailures && Float.compare(this.maxPaddingBitrate, transport.maxPaddingBitrate) == 0 && Float.compare(this.pacerDelay, transport.pacerDelay) == 0 && this.rtt == transport.rtt && this.sendBandwidth == transport.sendBandwidth && m.areEqual(this.localAddress, transport.localAddress) && m.areEqual(this.receiverReports, transport.receiverReports);
|
|
}
|
|
|
|
public final int getDecryptionFailures() {
|
|
return this.decryptionFailures;
|
|
}
|
|
|
|
public final String getLocalAddress() {
|
|
return this.localAddress;
|
|
}
|
|
|
|
public final float getMaxPaddingBitrate() {
|
|
return this.maxPaddingBitrate;
|
|
}
|
|
|
|
public final float getPacerDelay() {
|
|
return this.pacerDelay;
|
|
}
|
|
|
|
public final ReceiverReport[] getReceiverReports() {
|
|
return this.receiverReports;
|
|
}
|
|
|
|
public final int getRtt() {
|
|
return this.rtt;
|
|
}
|
|
|
|
public final int getSendBandwidth() {
|
|
return this.sendBandwidth;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int b = (((a.b(this.pacerDelay, a.b(this.maxPaddingBitrate, this.decryptionFailures * 31, 31), 31) + this.rtt) * 31) + this.sendBandwidth) * 31;
|
|
String str = this.localAddress;
|
|
int i = 0;
|
|
int hashCode = (b + (str != null ? str.hashCode() : 0)) * 31;
|
|
ReceiverReport[] receiverReportArr = this.receiverReports;
|
|
if (receiverReportArr != null) {
|
|
i = Arrays.hashCode(receiverReportArr);
|
|
}
|
|
return hashCode + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("Transport(decryptionFailures=");
|
|
L.append(this.decryptionFailures);
|
|
L.append(", maxPaddingBitrate=");
|
|
L.append(this.maxPaddingBitrate);
|
|
L.append(", pacerDelay=");
|
|
L.append(this.pacerDelay);
|
|
L.append(", rtt=");
|
|
L.append(this.rtt);
|
|
L.append(", sendBandwidth=");
|
|
L.append(this.sendBandwidth);
|
|
L.append(", localAddress=");
|
|
L.append(this.localAddress);
|
|
L.append(", receiverReports=");
|
|
L.append(Arrays.toString(this.receiverReports));
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|