discord-jadx/app/src/main/java/com/discord/widgets/guilds/list/GuildListItem.java

841 lines
31 KiB
Java

package com.discord.widgets.guilds.list;
import a0.a.a.b;
import c.d.b.a.a;
import com.discord.api.channel.Channel;
import com.discord.api.guildjoinrequest.ApplicationStatus;
import com.discord.models.guild.Guild;
import com.discord.widgets.channels.list.WidgetChannelListUnreads;
import d0.z.d.m;
import java.util.List;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: GuildListItem.kt */
public abstract class GuildListItem {
public static final Companion Companion = new Companion(null);
private static final long ID_BOTTOM_NAV_SPACE = -6;
private static final long ID_CREATE = -3;
private static final long ID_DIVIDER = -4;
private static final long ID_FRIENDS_LIST = -2;
private static final long ID_HELP = -5;
private static final long ID_HUB = -8;
public static final long ID_PENDING_GUILDS_FOLDER = -7;
private static final long ID_UNIDENTIFIED = -1;
public static final int TYPE_BOTTOM_NAV_SPACE = 8;
public static final int TYPE_CREATE = 5;
public static final int TYPE_DIVIDER = 1;
public static final int TYPE_DM = 2;
public static final int TYPE_FOLDER = 6;
public static final int TYPE_FRIENDS = 0;
public static final int TYPE_GUILD = 3;
public static final int TYPE_HELP = 7;
public static final int TYPE_HUB = 9;
public static final int TYPE_UNAVAILABLE = 4;
private final long itemId;
/* compiled from: GuildListItem.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
/* compiled from: GuildListItem.kt */
public static final class CreateItem extends GuildListItem {
public static final CreateItem INSTANCE = new CreateItem();
private CreateItem() {
super(-3, null);
}
}
/* compiled from: GuildListItem.kt */
public static final class DividerItem extends GuildListItem {
public static final DividerItem INSTANCE = new DividerItem();
private DividerItem() {
super(-4, null);
}
}
/* compiled from: GuildListItem.kt */
public static final class FolderItem extends GuildListItem implements WidgetChannelListUnreads.UnreadItem {
private final Integer color;
private final long folderId;
private final List<Guild> guilds;
private final boolean isAnyGuildConnectedToStageChannel;
private final boolean isAnyGuildConnectedToVoice;
private final boolean isAnyGuildSelected;
private final boolean isOpen;
private final boolean isPendingGuildsFolder;
private final boolean isTargetedForFolderAddition;
private final boolean isUnread;
private final int mentionCount;
private final String name;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public FolderItem(long j, Integer num, String str, boolean z2, List<Guild> list, boolean z3, boolean z4, boolean z5, int i, boolean z6, boolean z7) {
super(j, null);
m.checkNotNullParameter(list, "guilds");
this.folderId = j;
this.color = num;
this.name = str;
this.isOpen = z2;
this.guilds = list;
this.isAnyGuildSelected = z3;
this.isAnyGuildConnectedToVoice = z4;
this.isAnyGuildConnectedToStageChannel = z5;
this.mentionCount = i;
this.isUnread = z6;
this.isTargetedForFolderAddition = z7;
this.isPendingGuildsFolder = j == -7;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ FolderItem(long j, Integer num, String str, boolean z2, List list, boolean z3, boolean z4, boolean z5, int i, boolean z6, boolean z7, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(j, num, str, z2, list, z3, z4, z5, i, z6, (i2 & 1024) != 0 ? false : z7);
}
public static /* synthetic */ FolderItem copy$default(FolderItem folderItem, long j, Integer num, String str, boolean z2, List list, boolean z3, boolean z4, boolean z5, int i, boolean z6, boolean z7, int i2, Object obj) {
return folderItem.copy((i2 & 1) != 0 ? folderItem.folderId : j, (i2 & 2) != 0 ? folderItem.color : num, (i2 & 4) != 0 ? folderItem.name : str, (i2 & 8) != 0 ? folderItem.isOpen : z2, (i2 & 16) != 0 ? folderItem.guilds : list, (i2 & 32) != 0 ? folderItem.isAnyGuildSelected : z3, (i2 & 64) != 0 ? folderItem.isAnyGuildConnectedToVoice : z4, (i2 & 128) != 0 ? folderItem.isAnyGuildConnectedToStageChannel : z5, (i2 & 256) != 0 ? folderItem.getMentionCount() : i, (i2 & 512) != 0 ? folderItem.isUnread() : z6, (i2 & 1024) != 0 ? folderItem.isTargetedForFolderAddition : z7);
}
public final long component1() {
return this.folderId;
}
public final boolean component10() {
return isUnread();
}
public final boolean component11() {
return this.isTargetedForFolderAddition;
}
public final Integer component2() {
return this.color;
}
public final String component3() {
return this.name;
}
public final boolean component4() {
return this.isOpen;
}
public final List<Guild> component5() {
return this.guilds;
}
public final boolean component6() {
return this.isAnyGuildSelected;
}
public final boolean component7() {
return this.isAnyGuildConnectedToVoice;
}
public final boolean component8() {
return this.isAnyGuildConnectedToStageChannel;
}
public final int component9() {
return getMentionCount();
}
public final FolderItem copy(long j, Integer num, String str, boolean z2, List<Guild> list, boolean z3, boolean z4, boolean z5, int i, boolean z6, boolean z7) {
m.checkNotNullParameter(list, "guilds");
return new FolderItem(j, num, str, z2, list, z3, z4, z5, i, z6, z7);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof FolderItem)) {
return false;
}
FolderItem folderItem = (FolderItem) obj;
return this.folderId == folderItem.folderId && m.areEqual(this.color, folderItem.color) && m.areEqual(this.name, folderItem.name) && this.isOpen == folderItem.isOpen && m.areEqual(this.guilds, folderItem.guilds) && this.isAnyGuildSelected == folderItem.isAnyGuildSelected && this.isAnyGuildConnectedToVoice == folderItem.isAnyGuildConnectedToVoice && this.isAnyGuildConnectedToStageChannel == folderItem.isAnyGuildConnectedToStageChannel && getMentionCount() == folderItem.getMentionCount() && isUnread() == folderItem.isUnread() && this.isTargetedForFolderAddition == folderItem.isTargetedForFolderAddition;
}
public final Integer getColor() {
return this.color;
}
public final long getFolderId() {
return this.folderId;
}
public final List<Guild> getGuilds() {
return this.guilds;
}
@Override // com.discord.widgets.channels.list.WidgetChannelListUnreads.UnreadItem
public int getMentionCount() {
return this.mentionCount;
}
public final String getName() {
return this.name;
}
public int hashCode() {
int a = b.a(this.folderId) * 31;
Integer num = this.color;
int i = 0;
int hashCode = (a + (num != null ? num.hashCode() : 0)) * 31;
String str = this.name;
int hashCode2 = (hashCode + (str != null ? str.hashCode() : 0)) * 31;
boolean z2 = this.isOpen;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (hashCode2 + i3) * 31;
List<Guild> list = this.guilds;
if (list != null) {
i = list.hashCode();
}
int i7 = (i6 + i) * 31;
boolean z3 = this.isAnyGuildSelected;
if (z3) {
z3 = true;
}
int i8 = z3 ? 1 : 0;
int i9 = z3 ? 1 : 0;
int i10 = z3 ? 1 : 0;
int i11 = (i7 + i8) * 31;
boolean z4 = this.isAnyGuildConnectedToVoice;
if (z4) {
z4 = true;
}
int i12 = z4 ? 1 : 0;
int i13 = z4 ? 1 : 0;
int i14 = z4 ? 1 : 0;
int i15 = (i11 + i12) * 31;
boolean z5 = this.isAnyGuildConnectedToStageChannel;
if (z5) {
z5 = true;
}
int i16 = z5 ? 1 : 0;
int i17 = z5 ? 1 : 0;
int i18 = z5 ? 1 : 0;
int mentionCount = (getMentionCount() + ((i15 + i16) * 31)) * 31;
boolean isUnread = isUnread();
if (isUnread) {
isUnread = true;
}
int i19 = isUnread ? 1 : 0;
int i20 = isUnread ? 1 : 0;
int i21 = isUnread ? 1 : 0;
int i22 = (mentionCount + i19) * 31;
boolean z6 = this.isTargetedForFolderAddition;
if (!z6) {
i2 = z6 ? 1 : 0;
}
return i22 + i2;
}
public final boolean isAnyGuildConnectedToStageChannel() {
return this.isAnyGuildConnectedToStageChannel;
}
public final boolean isAnyGuildConnectedToVoice() {
return this.isAnyGuildConnectedToVoice;
}
public final boolean isAnyGuildSelected() {
return this.isAnyGuildSelected;
}
public final boolean isOpen() {
return this.isOpen;
}
public final boolean isPendingGuildsFolder() {
return this.isPendingGuildsFolder;
}
public final boolean isTargetedForFolderAddition() {
return this.isTargetedForFolderAddition;
}
@Override // com.discord.widgets.channels.list.WidgetChannelListUnreads.UnreadItem
public boolean isUnread() {
return this.isUnread;
}
public String toString() {
StringBuilder L = a.L("FolderItem(folderId=");
L.append(this.folderId);
L.append(", color=");
L.append(this.color);
L.append(", name=");
L.append(this.name);
L.append(", isOpen=");
L.append(this.isOpen);
L.append(", guilds=");
L.append(this.guilds);
L.append(", isAnyGuildSelected=");
L.append(this.isAnyGuildSelected);
L.append(", isAnyGuildConnectedToVoice=");
L.append(this.isAnyGuildConnectedToVoice);
L.append(", isAnyGuildConnectedToStageChannel=");
L.append(this.isAnyGuildConnectedToStageChannel);
L.append(", mentionCount=");
L.append(getMentionCount());
L.append(", isUnread=");
L.append(isUnread());
L.append(", isTargetedForFolderAddition=");
return a.G(L, this.isTargetedForFolderAddition, ")");
}
}
/* compiled from: GuildListItem.kt */
public static final class FriendsItem extends GuildListItem {
private final boolean isSelected;
public FriendsItem(boolean z2) {
super(-2, null);
this.isSelected = z2;
}
public static /* synthetic */ FriendsItem copy$default(FriendsItem friendsItem, boolean z2, int i, Object obj) {
if ((i & 1) != 0) {
z2 = friendsItem.isSelected;
}
return friendsItem.copy(z2);
}
public final boolean component1() {
return this.isSelected;
}
public final FriendsItem copy(boolean z2) {
return new FriendsItem(z2);
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof FriendsItem) && this.isSelected == ((FriendsItem) obj).isSelected;
}
return true;
}
public int hashCode() {
boolean z2 = this.isSelected;
if (z2) {
return 1;
}
return z2 ? 1 : 0;
}
public final boolean isSelected() {
return this.isSelected;
}
public String toString() {
return a.G(a.L("FriendsItem(isSelected="), this.isSelected, ")");
}
}
/* compiled from: GuildListItem.kt */
public static final class GuildItem extends GuildListItem implements WidgetChannelListUnreads.UnreadItem {
private final ApplicationStatus applicationStatus;
private final Long folderId;
private final Guild guild;
private final boolean hasActiveStageChannel;
private final boolean hasOngoingApplicationStream;
private final boolean isConnectedToStageChannel;
private final boolean isConnectedToVoice;
private final Boolean isLastGuildInFolder;
private final boolean isLurkingGuild;
private final boolean isPendingGuild;
private final boolean isSelected;
private final boolean isTargetedForFolderCreation;
private final boolean isUnread;
private final int mentionCount;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public GuildItem(Guild guild, int i, boolean z2, boolean z3, boolean z4, Long l, boolean z5, boolean z6, boolean z7, Boolean bool, ApplicationStatus applicationStatus, boolean z8, boolean z9, boolean z10) {
super(guild.getId(), null);
m.checkNotNullParameter(guild, "guild");
this.guild = guild;
this.mentionCount = i;
this.isLurkingGuild = z2;
this.isUnread = z3;
this.isSelected = z4;
this.folderId = l;
this.isConnectedToVoice = z5;
this.hasOngoingApplicationStream = z6;
this.isTargetedForFolderCreation = z7;
this.isLastGuildInFolder = bool;
this.applicationStatus = applicationStatus;
this.isPendingGuild = z8;
this.hasActiveStageChannel = z9;
this.isConnectedToStageChannel = z10;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ GuildItem(Guild guild, int i, boolean z2, boolean z3, boolean z4, Long l, boolean z5, boolean z6, boolean z7, Boolean bool, ApplicationStatus applicationStatus, boolean z8, boolean z9, boolean z10, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(guild, i, z2, z3, z4, l, (i2 & 64) != 0 ? false : z5, (i2 & 128) != 0 ? false : z6, (i2 & 256) != 0 ? false : z7, (i2 & 512) != 0 ? null : bool, (i2 & 1024) != 0 ? null : applicationStatus, (i2 & 2048) != 0 ? false : z8, (i2 & 4096) != 0 ? false : z9, (i2 & 8192) != 0 ? false : z10);
}
public static /* synthetic */ GuildItem copy$default(GuildItem guildItem, Guild guild, int i, boolean z2, boolean z3, boolean z4, Long l, boolean z5, boolean z6, boolean z7, Boolean bool, ApplicationStatus applicationStatus, boolean z8, boolean z9, boolean z10, int i2, Object obj) {
return guildItem.copy((i2 & 1) != 0 ? guildItem.guild : guild, (i2 & 2) != 0 ? guildItem.getMentionCount() : i, (i2 & 4) != 0 ? guildItem.isLurkingGuild : z2, (i2 & 8) != 0 ? guildItem.isUnread() : z3, (i2 & 16) != 0 ? guildItem.isSelected : z4, (i2 & 32) != 0 ? guildItem.folderId : l, (i2 & 64) != 0 ? guildItem.isConnectedToVoice : z5, (i2 & 128) != 0 ? guildItem.hasOngoingApplicationStream : z6, (i2 & 256) != 0 ? guildItem.isTargetedForFolderCreation : z7, (i2 & 512) != 0 ? guildItem.isLastGuildInFolder : bool, (i2 & 1024) != 0 ? guildItem.applicationStatus : applicationStatus, (i2 & 2048) != 0 ? guildItem.isPendingGuild : z8, (i2 & 4096) != 0 ? guildItem.hasActiveStageChannel : z9, (i2 & 8192) != 0 ? guildItem.isConnectedToStageChannel : z10);
}
public final Guild component1() {
return this.guild;
}
public final Boolean component10() {
return this.isLastGuildInFolder;
}
public final ApplicationStatus component11() {
return this.applicationStatus;
}
public final boolean component12() {
return this.isPendingGuild;
}
public final boolean component13() {
return this.hasActiveStageChannel;
}
public final boolean component14() {
return this.isConnectedToStageChannel;
}
public final int component2() {
return getMentionCount();
}
public final boolean component3() {
return this.isLurkingGuild;
}
public final boolean component4() {
return isUnread();
}
public final boolean component5() {
return this.isSelected;
}
public final Long component6() {
return this.folderId;
}
public final boolean component7() {
return this.isConnectedToVoice;
}
public final boolean component8() {
return this.hasOngoingApplicationStream;
}
public final boolean component9() {
return this.isTargetedForFolderCreation;
}
public final GuildItem copy(Guild guild, int i, boolean z2, boolean z3, boolean z4, Long l, boolean z5, boolean z6, boolean z7, Boolean bool, ApplicationStatus applicationStatus, boolean z8, boolean z9, boolean z10) {
m.checkNotNullParameter(guild, "guild");
return new GuildItem(guild, i, z2, z3, z4, l, z5, z6, z7, bool, applicationStatus, z8, z9, z10);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof GuildItem)) {
return false;
}
GuildItem guildItem = (GuildItem) obj;
return m.areEqual(this.guild, guildItem.guild) && getMentionCount() == guildItem.getMentionCount() && this.isLurkingGuild == guildItem.isLurkingGuild && isUnread() == guildItem.isUnread() && this.isSelected == guildItem.isSelected && m.areEqual(this.folderId, guildItem.folderId) && this.isConnectedToVoice == guildItem.isConnectedToVoice && this.hasOngoingApplicationStream == guildItem.hasOngoingApplicationStream && this.isTargetedForFolderCreation == guildItem.isTargetedForFolderCreation && m.areEqual(this.isLastGuildInFolder, guildItem.isLastGuildInFolder) && m.areEqual(this.applicationStatus, guildItem.applicationStatus) && this.isPendingGuild == guildItem.isPendingGuild && this.hasActiveStageChannel == guildItem.hasActiveStageChannel && this.isConnectedToStageChannel == guildItem.isConnectedToStageChannel;
}
public final ApplicationStatus getApplicationStatus() {
return this.applicationStatus;
}
public final Long getFolderId() {
return this.folderId;
}
public final Guild getGuild() {
return this.guild;
}
public final boolean getHasActiveStageChannel() {
return this.hasActiveStageChannel;
}
public final boolean getHasOngoingApplicationStream() {
return this.hasOngoingApplicationStream;
}
@Override // com.discord.widgets.channels.list.WidgetChannelListUnreads.UnreadItem
public int getMentionCount() {
return this.mentionCount;
}
public int hashCode() {
Guild guild = this.guild;
int i = 0;
int mentionCount = (getMentionCount() + ((guild != null ? guild.hashCode() : 0) * 31)) * 31;
boolean z2 = this.isLurkingGuild;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (mentionCount + i3) * 31;
boolean isUnread = isUnread();
if (isUnread) {
isUnread = true;
}
int i7 = isUnread ? 1 : 0;
int i8 = isUnread ? 1 : 0;
int i9 = isUnread ? 1 : 0;
int i10 = (i6 + i7) * 31;
boolean z3 = this.isSelected;
if (z3) {
z3 = true;
}
int i11 = z3 ? 1 : 0;
int i12 = z3 ? 1 : 0;
int i13 = z3 ? 1 : 0;
int i14 = (i10 + i11) * 31;
Long l = this.folderId;
int hashCode = (i14 + (l != null ? l.hashCode() : 0)) * 31;
boolean z4 = this.isConnectedToVoice;
if (z4) {
z4 = true;
}
int i15 = z4 ? 1 : 0;
int i16 = z4 ? 1 : 0;
int i17 = z4 ? 1 : 0;
int i18 = (hashCode + i15) * 31;
boolean z5 = this.hasOngoingApplicationStream;
if (z5) {
z5 = true;
}
int i19 = z5 ? 1 : 0;
int i20 = z5 ? 1 : 0;
int i21 = z5 ? 1 : 0;
int i22 = (i18 + i19) * 31;
boolean z6 = this.isTargetedForFolderCreation;
if (z6) {
z6 = true;
}
int i23 = z6 ? 1 : 0;
int i24 = z6 ? 1 : 0;
int i25 = z6 ? 1 : 0;
int i26 = (i22 + i23) * 31;
Boolean bool = this.isLastGuildInFolder;
int hashCode2 = (i26 + (bool != null ? bool.hashCode() : 0)) * 31;
ApplicationStatus applicationStatus = this.applicationStatus;
if (applicationStatus != null) {
i = applicationStatus.hashCode();
}
int i27 = (hashCode2 + i) * 31;
boolean z7 = this.isPendingGuild;
if (z7) {
z7 = true;
}
int i28 = z7 ? 1 : 0;
int i29 = z7 ? 1 : 0;
int i30 = z7 ? 1 : 0;
int i31 = (i27 + i28) * 31;
boolean z8 = this.hasActiveStageChannel;
if (z8) {
z8 = true;
}
int i32 = z8 ? 1 : 0;
int i33 = z8 ? 1 : 0;
int i34 = z8 ? 1 : 0;
int i35 = (i31 + i32) * 31;
boolean z9 = this.isConnectedToStageChannel;
if (!z9) {
i2 = z9 ? 1 : 0;
}
return i35 + i2;
}
public final boolean isConnectedToStageChannel() {
return this.isConnectedToStageChannel;
}
public final boolean isConnectedToVoice() {
return this.isConnectedToVoice;
}
public final Boolean isLastGuildInFolder() {
return this.isLastGuildInFolder;
}
public final boolean isLurkingGuild() {
return this.isLurkingGuild;
}
public final boolean isPendingGuild() {
return this.isPendingGuild;
}
public final boolean isSelected() {
return this.isSelected;
}
public final boolean isTargetedForFolderCreation() {
return this.isTargetedForFolderCreation;
}
@Override // com.discord.widgets.channels.list.WidgetChannelListUnreads.UnreadItem
public boolean isUnread() {
return this.isUnread;
}
public String toString() {
StringBuilder L = a.L("GuildItem(guild=");
L.append(this.guild);
L.append(", mentionCount=");
L.append(getMentionCount());
L.append(", isLurkingGuild=");
L.append(this.isLurkingGuild);
L.append(", isUnread=");
L.append(isUnread());
L.append(", isSelected=");
L.append(this.isSelected);
L.append(", folderId=");
L.append(this.folderId);
L.append(", isConnectedToVoice=");
L.append(this.isConnectedToVoice);
L.append(", hasOngoingApplicationStream=");
L.append(this.hasOngoingApplicationStream);
L.append(", isTargetedForFolderCreation=");
L.append(this.isTargetedForFolderCreation);
L.append(", isLastGuildInFolder=");
L.append(this.isLastGuildInFolder);
L.append(", applicationStatus=");
L.append(this.applicationStatus);
L.append(", isPendingGuild=");
L.append(this.isPendingGuild);
L.append(", hasActiveStageChannel=");
L.append(this.hasActiveStageChannel);
L.append(", isConnectedToStageChannel=");
return a.G(L, this.isConnectedToStageChannel, ")");
}
}
/* compiled from: GuildListItem.kt */
public static final class HelpItem extends GuildListItem {
public static final HelpItem INSTANCE = new HelpItem();
private HelpItem() {
super(-5, null);
}
}
/* compiled from: GuildListItem.kt */
public static final class HubItem extends GuildListItem {
private final boolean showSparkle;
public HubItem(boolean z2) {
super(-8, null);
this.showSparkle = z2;
}
public static /* synthetic */ HubItem copy$default(HubItem hubItem, boolean z2, int i, Object obj) {
if ((i & 1) != 0) {
z2 = hubItem.showSparkle;
}
return hubItem.copy(z2);
}
public final boolean component1() {
return this.showSparkle;
}
public final HubItem copy(boolean z2) {
return new HubItem(z2);
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof HubItem) && this.showSparkle == ((HubItem) obj).showSparkle;
}
return true;
}
public final boolean getShowSparkle() {
return this.showSparkle;
}
public int hashCode() {
boolean z2 = this.showSparkle;
if (z2) {
return 1;
}
return z2 ? 1 : 0;
}
public String toString() {
return a.G(a.L("HubItem(showSparkle="), this.showSparkle, ")");
}
}
/* compiled from: GuildListItem.kt */
public static final class PrivateChannelItem extends GuildListItem implements WidgetChannelListUnreads.UnreadItem {
private final Channel channel;
private final boolean isUnread;
private final int mentionCount;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public PrivateChannelItem(Channel channel, int i) {
super(channel.h(), null);
m.checkNotNullParameter(channel, "channel");
this.channel = channel;
this.mentionCount = i;
}
public static /* synthetic */ PrivateChannelItem copy$default(PrivateChannelItem privateChannelItem, Channel channel, int i, int i2, Object obj) {
if ((i2 & 1) != 0) {
channel = privateChannelItem.channel;
}
if ((i2 & 2) != 0) {
i = privateChannelItem.getMentionCount();
}
return privateChannelItem.copy(channel, i);
}
public final Channel component1() {
return this.channel;
}
public final int component2() {
return getMentionCount();
}
public final PrivateChannelItem copy(Channel channel, int i) {
m.checkNotNullParameter(channel, "channel");
return new PrivateChannelItem(channel, i);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof PrivateChannelItem)) {
return false;
}
PrivateChannelItem privateChannelItem = (PrivateChannelItem) obj;
return m.areEqual(this.channel, privateChannelItem.channel) && getMentionCount() == privateChannelItem.getMentionCount();
}
public final Channel getChannel() {
return this.channel;
}
@Override // com.discord.widgets.channels.list.WidgetChannelListUnreads.UnreadItem
public int getMentionCount() {
return this.mentionCount;
}
public int hashCode() {
Channel channel = this.channel;
return getMentionCount() + ((channel != null ? channel.hashCode() : 0) * 31);
}
@Override // com.discord.widgets.channels.list.WidgetChannelListUnreads.UnreadItem
public boolean isUnread() {
return this.isUnread;
}
public String toString() {
StringBuilder L = a.L("PrivateChannelItem(channel=");
L.append(this.channel);
L.append(", mentionCount=");
L.append(getMentionCount());
L.append(")");
return L.toString();
}
}
/* compiled from: GuildListItem.kt */
public static final class SpaceItem extends GuildListItem {
public static final SpaceItem INSTANCE = new SpaceItem();
private SpaceItem() {
super(-6, null);
}
}
/* compiled from: GuildListItem.kt */
public static final class UnavailableItem extends GuildListItem {
private final int unavailableGuildCount;
public UnavailableItem(int i) {
super(-1, null);
this.unavailableGuildCount = i;
}
public static /* synthetic */ UnavailableItem copy$default(UnavailableItem unavailableItem, int i, int i2, Object obj) {
if ((i2 & 1) != 0) {
i = unavailableItem.unavailableGuildCount;
}
return unavailableItem.copy(i);
}
public final int component1() {
return this.unavailableGuildCount;
}
public final UnavailableItem copy(int i) {
return new UnavailableItem(i);
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof UnavailableItem) && this.unavailableGuildCount == ((UnavailableItem) obj).unavailableGuildCount;
}
return true;
}
public final int getUnavailableGuildCount() {
return this.unavailableGuildCount;
}
public int hashCode() {
return this.unavailableGuildCount;
}
public String toString() {
return a.y(a.L("UnavailableItem(unavailableGuildCount="), this.unavailableGuildCount, ")");
}
}
private GuildListItem(long j) {
this.itemId = j;
}
public /* synthetic */ GuildListItem(long j, DefaultConstructorMarker defaultConstructorMarker) {
this(j);
}
public final long getItemId() {
return this.itemId;
}
}