discord-jadx/app/src/main/java/com/discord/widgets/user/presence/ModelStageRichPresence.java

269 lines
9.9 KiB
Java

package com.discord.widgets.user.presence;
import a0.a.a.b;
import c.d.b.a.a;
import com.discord.stores.StoreStream;
import com.discord.stores.StoreUserPresence;
import d0.z.d.m;
import java.util.List;
import java.util.Set;
import kotlin.jvm.internal.DefaultConstructorMarker;
import rx.Observable;
/* compiled from: ModelStageRichPresence.kt */
public final class ModelStageRichPresence {
public static final Companion Companion = new Companion(null);
private final int audienceSize;
private final long channelId;
private final String guildIcon;
private final long guildId;
private final boolean guildIsPartnered;
private final boolean guildIsVerified;
private final String guildName;
private final Set<Long> knownUserIds;
private final int speakerCount;
private final Set<Long> speakerIds;
private final long stageInstanceId;
private final String topic;
private final boolean userIsSpeaker;
/* compiled from: ModelStageRichPresence.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public static /* synthetic */ Observable observeStageRichPresence$default(Companion companion, StoreUserPresence storeUserPresence, int i, Object obj) {
if ((i & 1) != 0) {
storeUserPresence = StoreStream.Companion.getPresences();
}
return companion.observeStageRichPresence(storeUserPresence);
}
public final Observable<List<ModelStageRichPresence>> observeStageRichPresence(StoreUserPresence storeUserPresence) {
m.checkNotNullParameter(storeUserPresence, "storeUserPresence");
Observable<R> F = storeUserPresence.observeAllPresences().F(ModelStageRichPresence$Companion$observeStageRichPresence$1.INSTANCE);
m.checkNotNullExpressionValue(F, "storeUserPresence\n … }.toList()\n }");
return F;
}
}
public ModelStageRichPresence(long j, long j2, boolean z2, long j3, boolean z3, boolean z4, String str, String str2, String str3, Set<Long> set, Set<Long> set2, int i, int i2) {
m.checkNotNullParameter(str, "guildName");
m.checkNotNullParameter(str3, "topic");
m.checkNotNullParameter(set, "knownUserIds");
m.checkNotNullParameter(set2, "speakerIds");
this.channelId = j;
this.stageInstanceId = j2;
this.userIsSpeaker = z2;
this.guildId = j3;
this.guildIsPartnered = z3;
this.guildIsVerified = z4;
this.guildName = str;
this.guildIcon = str2;
this.topic = str3;
this.knownUserIds = set;
this.speakerIds = set2;
this.speakerCount = i;
this.audienceSize = i2;
}
public static /* synthetic */ ModelStageRichPresence copy$default(ModelStageRichPresence modelStageRichPresence, long j, long j2, boolean z2, long j3, boolean z3, boolean z4, String str, String str2, String str3, Set set, Set set2, int i, int i2, int i3, Object obj) {
return modelStageRichPresence.copy((i3 & 1) != 0 ? modelStageRichPresence.channelId : j, (i3 & 2) != 0 ? modelStageRichPresence.stageInstanceId : j2, (i3 & 4) != 0 ? modelStageRichPresence.userIsSpeaker : z2, (i3 & 8) != 0 ? modelStageRichPresence.guildId : j3, (i3 & 16) != 0 ? modelStageRichPresence.guildIsPartnered : z3, (i3 & 32) != 0 ? modelStageRichPresence.guildIsVerified : z4, (i3 & 64) != 0 ? modelStageRichPresence.guildName : str, (i3 & 128) != 0 ? modelStageRichPresence.guildIcon : str2, (i3 & 256) != 0 ? modelStageRichPresence.topic : str3, (i3 & 512) != 0 ? modelStageRichPresence.knownUserIds : set, (i3 & 1024) != 0 ? modelStageRichPresence.speakerIds : set2, (i3 & 2048) != 0 ? modelStageRichPresence.speakerCount : i, (i3 & 4096) != 0 ? modelStageRichPresence.audienceSize : i2);
}
public final long component1() {
return this.channelId;
}
public final Set<Long> component10() {
return this.knownUserIds;
}
public final Set<Long> component11() {
return this.speakerIds;
}
public final int component12() {
return this.speakerCount;
}
public final int component13() {
return this.audienceSize;
}
public final long component2() {
return this.stageInstanceId;
}
public final boolean component3() {
return this.userIsSpeaker;
}
public final long component4() {
return this.guildId;
}
public final boolean component5() {
return this.guildIsPartnered;
}
public final boolean component6() {
return this.guildIsVerified;
}
public final String component7() {
return this.guildName;
}
public final String component8() {
return this.guildIcon;
}
public final String component9() {
return this.topic;
}
public final ModelStageRichPresence copy(long j, long j2, boolean z2, long j3, boolean z3, boolean z4, String str, String str2, String str3, Set<Long> set, Set<Long> set2, int i, int i2) {
m.checkNotNullParameter(str, "guildName");
m.checkNotNullParameter(str3, "topic");
m.checkNotNullParameter(set, "knownUserIds");
m.checkNotNullParameter(set2, "speakerIds");
return new ModelStageRichPresence(j, j2, z2, j3, z3, z4, str, str2, str3, set, set2, i, i2);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ModelStageRichPresence)) {
return false;
}
ModelStageRichPresence modelStageRichPresence = (ModelStageRichPresence) obj;
return this.channelId == modelStageRichPresence.channelId && this.stageInstanceId == modelStageRichPresence.stageInstanceId && this.userIsSpeaker == modelStageRichPresence.userIsSpeaker && this.guildId == modelStageRichPresence.guildId && this.guildIsPartnered == modelStageRichPresence.guildIsPartnered && this.guildIsVerified == modelStageRichPresence.guildIsVerified && m.areEqual(this.guildName, modelStageRichPresence.guildName) && m.areEqual(this.guildIcon, modelStageRichPresence.guildIcon) && m.areEqual(this.topic, modelStageRichPresence.topic) && m.areEqual(this.knownUserIds, modelStageRichPresence.knownUserIds) && m.areEqual(this.speakerIds, modelStageRichPresence.speakerIds) && this.speakerCount == modelStageRichPresence.speakerCount && this.audienceSize == modelStageRichPresence.audienceSize;
}
public final int getAudienceSize() {
return this.audienceSize;
}
public final long getChannelId() {
return this.channelId;
}
public final String getGuildIcon() {
return this.guildIcon;
}
public final long getGuildId() {
return this.guildId;
}
public final boolean getGuildIsPartnered() {
return this.guildIsPartnered;
}
public final boolean getGuildIsVerified() {
return this.guildIsVerified;
}
public final String getGuildName() {
return this.guildName;
}
public final Set<Long> getKnownUserIds() {
return this.knownUserIds;
}
public final int getSpeakerCount() {
return this.speakerCount;
}
public final Set<Long> getSpeakerIds() {
return this.speakerIds;
}
public final long getStageInstanceId() {
return this.stageInstanceId;
}
public final String getTopic() {
return this.topic;
}
public final boolean getUserIsSpeaker() {
return this.userIsSpeaker;
}
public int hashCode() {
int a = (b.a(this.stageInstanceId) + (b.a(this.channelId) * 31)) * 31;
boolean z2 = this.userIsSpeaker;
int i = 1;
if (z2) {
z2 = true;
}
int i2 = z2 ? 1 : 0;
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int a2 = (b.a(this.guildId) + ((a + i2) * 31)) * 31;
boolean z3 = this.guildIsPartnered;
if (z3) {
z3 = true;
}
int i5 = z3 ? 1 : 0;
int i6 = z3 ? 1 : 0;
int i7 = z3 ? 1 : 0;
int i8 = (a2 + i5) * 31;
boolean z4 = this.guildIsVerified;
if (!z4) {
i = z4 ? 1 : 0;
}
int i9 = (i8 + i) * 31;
String str = this.guildName;
int i10 = 0;
int hashCode = (i9 + (str != null ? str.hashCode() : 0)) * 31;
String str2 = this.guildIcon;
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
String str3 = this.topic;
int hashCode3 = (hashCode2 + (str3 != null ? str3.hashCode() : 0)) * 31;
Set<Long> set = this.knownUserIds;
int hashCode4 = (hashCode3 + (set != null ? set.hashCode() : 0)) * 31;
Set<Long> set2 = this.speakerIds;
if (set2 != null) {
i10 = set2.hashCode();
}
return ((((hashCode4 + i10) * 31) + this.speakerCount) * 31) + this.audienceSize;
}
public String toString() {
StringBuilder K = a.K("ModelStageRichPresence(channelId=");
K.append(this.channelId);
K.append(", stageInstanceId=");
K.append(this.stageInstanceId);
K.append(", userIsSpeaker=");
K.append(this.userIsSpeaker);
K.append(", guildId=");
K.append(this.guildId);
K.append(", guildIsPartnered=");
K.append(this.guildIsPartnered);
K.append(", guildIsVerified=");
K.append(this.guildIsVerified);
K.append(", guildName=");
K.append(this.guildName);
K.append(", guildIcon=");
K.append(this.guildIcon);
K.append(", topic=");
K.append(this.topic);
K.append(", knownUserIds=");
K.append(this.knownUserIds);
K.append(", speakerIds=");
K.append(this.speakerIds);
K.append(", speakerCount=");
K.append(this.speakerCount);
K.append(", audienceSize=");
return a.w(K, this.audienceSize, ")");
}
}