93 lines
3.0 KiB
Java
93 lines
3.0 KiB
Java
package com.discord.widgets.directories;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.models.guild.Guild;
|
|
import d0.t.n;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: WidgetDiscordHubAddServerViewModel.kt */
|
|
public final class DiscordHubAddServerState {
|
|
private final String guildName;
|
|
private final List<Guild> guilds;
|
|
|
|
public DiscordHubAddServerState() {
|
|
this(null, null, 3, null);
|
|
}
|
|
|
|
public DiscordHubAddServerState(String str, List<Guild> list) {
|
|
m.checkNotNullParameter(str, "guildName");
|
|
m.checkNotNullParameter(list, "guilds");
|
|
this.guildName = str;
|
|
this.guilds = list;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ DiscordHubAddServerState(String str, List list, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? "" : str, (i & 2) != 0 ? n.emptyList() : list);
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.directories.DiscordHubAddServerState */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ DiscordHubAddServerState copy$default(DiscordHubAddServerState discordHubAddServerState, String str, List list, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = discordHubAddServerState.guildName;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
list = discordHubAddServerState.guilds;
|
|
}
|
|
return discordHubAddServerState.copy(str, list);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.guildName;
|
|
}
|
|
|
|
public final List<Guild> component2() {
|
|
return this.guilds;
|
|
}
|
|
|
|
public final DiscordHubAddServerState copy(String str, List<Guild> list) {
|
|
m.checkNotNullParameter(str, "guildName");
|
|
m.checkNotNullParameter(list, "guilds");
|
|
return new DiscordHubAddServerState(str, list);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof DiscordHubAddServerState)) {
|
|
return false;
|
|
}
|
|
DiscordHubAddServerState discordHubAddServerState = (DiscordHubAddServerState) obj;
|
|
return m.areEqual(this.guildName, discordHubAddServerState.guildName) && m.areEqual(this.guilds, discordHubAddServerState.guilds);
|
|
}
|
|
|
|
public final String getGuildName() {
|
|
return this.guildName;
|
|
}
|
|
|
|
public final List<Guild> getGuilds() {
|
|
return this.guilds;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.guildName;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
List<Guild> list = this.guilds;
|
|
if (list != null) {
|
|
i = list.hashCode();
|
|
}
|
|
return hashCode + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder K = a.K("DiscordHubAddServerState(guildName=");
|
|
K.append(this.guildName);
|
|
K.append(", guilds=");
|
|
return a.D(K, this.guilds, ")");
|
|
}
|
|
}
|