110 lines
3.9 KiB
Java
110 lines
3.9 KiB
Java
package com.discord.widgets.hubs;
|
|
|
|
import a0.a.a.b;
|
|
import c.d.b.a.a;
|
|
import com.discord.stores.utilities.Default;
|
|
import com.discord.stores.utilities.RestCallState;
|
|
import d0.z.d.m;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: WidgetDiscordHubDescriptionViewModel.kt */
|
|
public final class HubDescriptionState {
|
|
private final RestCallState<Object> addServerAsync;
|
|
private final long channelId;
|
|
private final String guildName;
|
|
|
|
public HubDescriptionState() {
|
|
this(0, null, null, 7, null);
|
|
}
|
|
|
|
public HubDescriptionState(long j, String str, RestCallState<? extends Object> restCallState) {
|
|
m.checkNotNullParameter(str, "guildName");
|
|
m.checkNotNullParameter(restCallState, "addServerAsync");
|
|
this.channelId = j;
|
|
this.guildName = str;
|
|
this.addServerAsync = restCallState;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ HubDescriptionState(long j, String str, RestCallState restCallState, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? Long.MIN_VALUE : j, (i & 2) != 0 ? "" : str, (i & 4) != 0 ? Default.INSTANCE : restCallState);
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.hubs.HubDescriptionState */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ HubDescriptionState copy$default(HubDescriptionState hubDescriptionState, long j, String str, RestCallState restCallState, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
j = hubDescriptionState.channelId;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
str = hubDescriptionState.guildName;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
restCallState = hubDescriptionState.addServerAsync;
|
|
}
|
|
return hubDescriptionState.copy(j, str, restCallState);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.guildName;
|
|
}
|
|
|
|
public final RestCallState<Object> component3() {
|
|
return this.addServerAsync;
|
|
}
|
|
|
|
public final HubDescriptionState copy(long j, String str, RestCallState<? extends Object> restCallState) {
|
|
m.checkNotNullParameter(str, "guildName");
|
|
m.checkNotNullParameter(restCallState, "addServerAsync");
|
|
return new HubDescriptionState(j, str, restCallState);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof HubDescriptionState)) {
|
|
return false;
|
|
}
|
|
HubDescriptionState hubDescriptionState = (HubDescriptionState) obj;
|
|
return this.channelId == hubDescriptionState.channelId && m.areEqual(this.guildName, hubDescriptionState.guildName) && m.areEqual(this.addServerAsync, hubDescriptionState.addServerAsync);
|
|
}
|
|
|
|
public final RestCallState<Object> getAddServerAsync() {
|
|
return this.addServerAsync;
|
|
}
|
|
|
|
public final long getChannelId() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final String getGuildName() {
|
|
return this.guildName;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int a = b.a(this.channelId) * 31;
|
|
String str = this.guildName;
|
|
int i = 0;
|
|
int hashCode = (a + (str != null ? str.hashCode() : 0)) * 31;
|
|
RestCallState<Object> restCallState = this.addServerAsync;
|
|
if (restCallState != null) {
|
|
i = restCallState.hashCode();
|
|
}
|
|
return hashCode + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("HubDescriptionState(channelId=");
|
|
L.append(this.channelId);
|
|
L.append(", guildName=");
|
|
L.append(this.guildName);
|
|
L.append(", addServerAsync=");
|
|
L.append(this.addServerAsync);
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|