163 lines
5.9 KiB
Java
163 lines
5.9 KiB
Java
package com.discord.widgets.hubs;
|
|
|
|
import b.d.b.a.a;
|
|
import com.discord.api.directory.DirectoryEntryGuild;
|
|
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: WidgetHubAddServerViewModel.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class HubAddServerState {
|
|
private final List<DirectoryEntryGuild> addedDirectories;
|
|
private final List<Guild> addedGuilds;
|
|
private final Long directoryChannelId;
|
|
private final String hubName;
|
|
private final List<Guild> selectableGuilds;
|
|
private final int selectedIndex;
|
|
|
|
public HubAddServerState() {
|
|
this(null, null, 0, null, null, null, 63, null);
|
|
}
|
|
|
|
public HubAddServerState(String str, Long l, int i, List<Guild> list, List<Guild> list2, List<DirectoryEntryGuild> list3) {
|
|
m.checkNotNullParameter(str, "hubName");
|
|
m.checkNotNullParameter(list, "selectableGuilds");
|
|
m.checkNotNullParameter(list2, "addedGuilds");
|
|
m.checkNotNullParameter(list3, "addedDirectories");
|
|
this.hubName = str;
|
|
this.directoryChannelId = l;
|
|
this.selectedIndex = i;
|
|
this.selectableGuilds = list;
|
|
this.addedGuilds = list2;
|
|
this.addedDirectories = list3;
|
|
}
|
|
|
|
public /* synthetic */ HubAddServerState(String str, Long l, int i, List list, List list2, List list3, int i2, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i2 & 1) != 0 ? "" : str, (i2 & 2) != 0 ? null : l, (i2 & 4) != 0 ? 0 : i, (i2 & 8) != 0 ? n.emptyList() : list, (i2 & 16) != 0 ? n.emptyList() : list2, (i2 & 32) != 0 ? n.emptyList() : list3);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ HubAddServerState copy$default(HubAddServerState hubAddServerState, String str, Long l, int i, List list, List list2, List list3, int i2, Object obj) {
|
|
if ((i2 & 1) != 0) {
|
|
str = hubAddServerState.hubName;
|
|
}
|
|
if ((i2 & 2) != 0) {
|
|
l = hubAddServerState.directoryChannelId;
|
|
}
|
|
if ((i2 & 4) != 0) {
|
|
i = hubAddServerState.selectedIndex;
|
|
}
|
|
if ((i2 & 8) != 0) {
|
|
list = hubAddServerState.selectableGuilds;
|
|
}
|
|
if ((i2 & 16) != 0) {
|
|
list2 = hubAddServerState.addedGuilds;
|
|
}
|
|
if ((i2 & 32) != 0) {
|
|
list3 = hubAddServerState.addedDirectories;
|
|
}
|
|
return hubAddServerState.copy(str, l, i, list, list2, list3);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.hubName;
|
|
}
|
|
|
|
public final Long component2() {
|
|
return this.directoryChannelId;
|
|
}
|
|
|
|
public final int component3() {
|
|
return this.selectedIndex;
|
|
}
|
|
|
|
public final List<Guild> component4() {
|
|
return this.selectableGuilds;
|
|
}
|
|
|
|
public final List<Guild> component5() {
|
|
return this.addedGuilds;
|
|
}
|
|
|
|
public final List<DirectoryEntryGuild> component6() {
|
|
return this.addedDirectories;
|
|
}
|
|
|
|
public final HubAddServerState copy(String str, Long l, int i, List<Guild> list, List<Guild> list2, List<DirectoryEntryGuild> list3) {
|
|
m.checkNotNullParameter(str, "hubName");
|
|
m.checkNotNullParameter(list, "selectableGuilds");
|
|
m.checkNotNullParameter(list2, "addedGuilds");
|
|
m.checkNotNullParameter(list3, "addedDirectories");
|
|
return new HubAddServerState(str, l, i, list, list2, list3);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof HubAddServerState)) {
|
|
return false;
|
|
}
|
|
HubAddServerState hubAddServerState = (HubAddServerState) obj;
|
|
return m.areEqual(this.hubName, hubAddServerState.hubName) && m.areEqual(this.directoryChannelId, hubAddServerState.directoryChannelId) && this.selectedIndex == hubAddServerState.selectedIndex && m.areEqual(this.selectableGuilds, hubAddServerState.selectableGuilds) && m.areEqual(this.addedGuilds, hubAddServerState.addedGuilds) && m.areEqual(this.addedDirectories, hubAddServerState.addedDirectories);
|
|
}
|
|
|
|
public final List<DirectoryEntryGuild> getAddedDirectories() {
|
|
return this.addedDirectories;
|
|
}
|
|
|
|
public final List<Guild> getAddedGuilds() {
|
|
return this.addedGuilds;
|
|
}
|
|
|
|
public final Long getDirectoryChannelId() {
|
|
return this.directoryChannelId;
|
|
}
|
|
|
|
public final String getHubName() {
|
|
return this.hubName;
|
|
}
|
|
|
|
public final List<Guild> getSelectableGuilds() {
|
|
return this.selectableGuilds;
|
|
}
|
|
|
|
public final int getSelectedIndex() {
|
|
return this.selectedIndex;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.hubName;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
Long l = this.directoryChannelId;
|
|
int hashCode2 = (((hashCode + (l != null ? l.hashCode() : 0)) * 31) + this.selectedIndex) * 31;
|
|
List<Guild> list = this.selectableGuilds;
|
|
int hashCode3 = (hashCode2 + (list != null ? list.hashCode() : 0)) * 31;
|
|
List<Guild> list2 = this.addedGuilds;
|
|
int hashCode4 = (hashCode3 + (list2 != null ? list2.hashCode() : 0)) * 31;
|
|
List<DirectoryEntryGuild> list3 = this.addedDirectories;
|
|
if (list3 != null) {
|
|
i = list3.hashCode();
|
|
}
|
|
return hashCode4 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("HubAddServerState(hubName=");
|
|
R.append(this.hubName);
|
|
R.append(", directoryChannelId=");
|
|
R.append(this.directoryChannelId);
|
|
R.append(", selectedIndex=");
|
|
R.append(this.selectedIndex);
|
|
R.append(", selectableGuilds=");
|
|
R.append(this.selectableGuilds);
|
|
R.append(", addedGuilds=");
|
|
R.append(this.addedGuilds);
|
|
R.append(", addedDirectories=");
|
|
return a.K(R, this.addedDirectories, ")");
|
|
}
|
|
}
|