118 lines
3.8 KiB
Java
118 lines
3.8 KiB
Java
package com.discord.models.domain;
|
|
|
|
import b.d.b.a.a;
|
|
import com.discord.models.domain.Model;
|
|
import d0.z.d.m;
|
|
import kotlin.jvm.internal.Ref$ObjectRef;
|
|
/* compiled from: ModelApplicationStream.kt */
|
|
public final class StreamServerUpdate {
|
|
private final String endpoint;
|
|
private final String streamKey;
|
|
private final String token;
|
|
|
|
/* compiled from: ModelApplicationStream.kt */
|
|
public static final class Parser implements Model.Parser<StreamServerUpdate> {
|
|
public static final Parser INSTANCE = new Parser();
|
|
|
|
private Parser() {
|
|
}
|
|
|
|
@Override // com.discord.models.domain.Model.Parser
|
|
public StreamServerUpdate parse(Model.JsonReader jsonReader) {
|
|
Ref$ObjectRef a02 = a.a0(jsonReader, "reader");
|
|
a02.element = null;
|
|
Ref$ObjectRef ref$ObjectRef = new Ref$ObjectRef();
|
|
ref$ObjectRef.element = null;
|
|
Ref$ObjectRef ref$ObjectRef2 = new Ref$ObjectRef();
|
|
ref$ObjectRef2.element = null;
|
|
jsonReader.nextObject(new StreamServerUpdate$Parser$parse$1(a02, jsonReader, ref$ObjectRef, ref$ObjectRef2));
|
|
String str = a02.element;
|
|
if (str == null) {
|
|
m.throwUninitializedPropertyAccessException("streamKey");
|
|
}
|
|
return new StreamServerUpdate(str, ref$ObjectRef.element, ref$ObjectRef2.element);
|
|
}
|
|
}
|
|
|
|
public StreamServerUpdate(String str, String str2, String str3) {
|
|
m.checkNotNullParameter(str, "streamKey");
|
|
this.streamKey = str;
|
|
this.endpoint = str2;
|
|
this.token = str3;
|
|
}
|
|
|
|
public static /* synthetic */ StreamServerUpdate copy$default(StreamServerUpdate streamServerUpdate, String str, String str2, String str3, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = streamServerUpdate.streamKey;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
str2 = streamServerUpdate.endpoint;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
str3 = streamServerUpdate.token;
|
|
}
|
|
return streamServerUpdate.copy(str, str2, str3);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.streamKey;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.endpoint;
|
|
}
|
|
|
|
public final String component3() {
|
|
return this.token;
|
|
}
|
|
|
|
public final StreamServerUpdate copy(String str, String str2, String str3) {
|
|
m.checkNotNullParameter(str, "streamKey");
|
|
return new StreamServerUpdate(str, str2, str3);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof StreamServerUpdate)) {
|
|
return false;
|
|
}
|
|
StreamServerUpdate streamServerUpdate = (StreamServerUpdate) obj;
|
|
return m.areEqual(this.streamKey, streamServerUpdate.streamKey) && m.areEqual(this.endpoint, streamServerUpdate.endpoint) && m.areEqual(this.token, streamServerUpdate.token);
|
|
}
|
|
|
|
public final String getEndpoint() {
|
|
return this.endpoint;
|
|
}
|
|
|
|
public final String getStreamKey() {
|
|
return this.streamKey;
|
|
}
|
|
|
|
public final String getToken() {
|
|
return this.token;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.streamKey;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
String str2 = this.endpoint;
|
|
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
String str3 = this.token;
|
|
if (str3 != null) {
|
|
i = str3.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("StreamServerUpdate(streamKey=");
|
|
R.append(this.streamKey);
|
|
R.append(", endpoint=");
|
|
R.append(this.endpoint);
|
|
R.append(", token=");
|
|
return a.H(R, this.token, ")");
|
|
}
|
|
}
|