discord-jadx/app/src/main/java/com/discord/widgets/channels/list/items/ChannelListItemVoiceChannel...

311 lines
13 KiB
Java

package com.discord.widgets.channels.list.items;
import b.d.b.a.a;
import com.discord.api.channel.Channel;
import com.discord.api.guild.GuildMaxVideoChannelUsers;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.widgets.channels.list.WidgetChannelListUnreads;
import d0.z.d.m;
/* compiled from: ChannelListItemVoiceChannel.kt */
public final class ChannelListItemVoiceChannel implements ChannelListItem, ChannelListVocalItem, WidgetChannelListUnreads.UnreadItem {
private final Channel channel;
private final GuildMaxVideoChannelUsers guildMaxVideoChannelUsers;
private final GuildScheduledEvent guildScheduledEvent;
private final boolean isAnyoneUsingVideo;
private final boolean isGuildRoleSubscriptionChannel;
private final boolean isGuildRoleSubscriptionLockedChannel;
private final boolean isLocked;
private final boolean isNsfw;
private final boolean isUnread;
private final String key;
private final int mentionCount;
private final int numUsersConnected;
private final Long permission;
private final boolean textSelected;
private final int type = 1;
private final boolean voiceSelected;
/* JADX DEBUG: TODO: convert one arg to string using `String.valueOf()`, args: [(wrap: int : 0x0031: INVOKE (r3v1 int) = (r1v0 'this' com.discord.widgets.channels.list.items.ChannelListItemVoiceChannel A[IMMUTABLE_TYPE, THIS]) type: VIRTUAL call: com.discord.widgets.channels.list.items.ChannelListItemVoiceChannel.getType():int), (wrap: long : 0x003c: INVOKE (r3v3 long) =
(wrap: com.discord.api.channel.Channel : 0x0038: INVOKE (r3v2 com.discord.api.channel.Channel) = (r1v0 'this' com.discord.widgets.channels.list.items.ChannelListItemVoiceChannel A[IMMUTABLE_TYPE, THIS]) type: VIRTUAL call: com.discord.widgets.channels.list.items.ChannelListItemVoiceChannel.getChannel():com.discord.api.channel.Channel)
type: VIRTUAL call: com.discord.api.channel.Channel.h():long)] */
public ChannelListItemVoiceChannel(Channel channel, boolean z2, boolean z3, Long l, int i, boolean z4, int i2, boolean z5, boolean z6, boolean z7, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, boolean z8, boolean z9, GuildScheduledEvent guildScheduledEvent) {
m.checkNotNullParameter(channel, "channel");
m.checkNotNullParameter(guildMaxVideoChannelUsers, "guildMaxVideoChannelUsers");
this.channel = channel;
this.textSelected = z2;
this.voiceSelected = z3;
this.permission = l;
this.mentionCount = i;
this.isUnread = z4;
this.numUsersConnected = i2;
this.isLocked = z5;
this.isNsfw = z6;
this.isAnyoneUsingVideo = z7;
this.guildMaxVideoChannelUsers = guildMaxVideoChannelUsers;
this.isGuildRoleSubscriptionLockedChannel = z8;
this.isGuildRoleSubscriptionChannel = z9;
this.guildScheduledEvent = guildScheduledEvent;
StringBuilder sb = new StringBuilder();
sb.append(getType());
sb.append(getChannel().h());
this.key = sb.toString();
}
public static /* synthetic */ ChannelListItemVoiceChannel copy$default(ChannelListItemVoiceChannel channelListItemVoiceChannel, Channel channel, boolean z2, boolean z3, Long l, int i, boolean z4, int i2, boolean z5, boolean z6, boolean z7, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, boolean z8, boolean z9, GuildScheduledEvent guildScheduledEvent, int i3, Object obj) {
return channelListItemVoiceChannel.copy((i3 & 1) != 0 ? channelListItemVoiceChannel.getChannel() : channel, (i3 & 2) != 0 ? channelListItemVoiceChannel.textSelected : z2, (i3 & 4) != 0 ? channelListItemVoiceChannel.voiceSelected : z3, (i3 & 8) != 0 ? channelListItemVoiceChannel.permission : l, (i3 & 16) != 0 ? channelListItemVoiceChannel.getMentionCount() : i, (i3 & 32) != 0 ? channelListItemVoiceChannel.isUnread() : z4, (i3 & 64) != 0 ? channelListItemVoiceChannel.getNumUsersConnected() : i2, (i3 & 128) != 0 ? channelListItemVoiceChannel.isLocked : z5, (i3 & 256) != 0 ? channelListItemVoiceChannel.isNsfw : z6, (i3 & 512) != 0 ? channelListItemVoiceChannel.isAnyoneUsingVideo : z7, (i3 & 1024) != 0 ? channelListItemVoiceChannel.guildMaxVideoChannelUsers : guildMaxVideoChannelUsers, (i3 & 2048) != 0 ? channelListItemVoiceChannel.isGuildRoleSubscriptionLockedChannel : z8, (i3 & 4096) != 0 ? channelListItemVoiceChannel.isGuildRoleSubscriptionChannel : z9, (i3 & 8192) != 0 ? channelListItemVoiceChannel.guildScheduledEvent : guildScheduledEvent);
}
public final Channel component1() {
return getChannel();
}
public final boolean component10() {
return this.isAnyoneUsingVideo;
}
public final GuildMaxVideoChannelUsers component11() {
return this.guildMaxVideoChannelUsers;
}
public final boolean component12() {
return this.isGuildRoleSubscriptionLockedChannel;
}
public final boolean component13() {
return this.isGuildRoleSubscriptionChannel;
}
public final GuildScheduledEvent component14() {
return this.guildScheduledEvent;
}
public final boolean component2() {
return this.textSelected;
}
public final boolean component3() {
return this.voiceSelected;
}
public final Long component4() {
return this.permission;
}
public final int component5() {
return getMentionCount();
}
public final boolean component6() {
return isUnread();
}
public final int component7() {
return getNumUsersConnected();
}
public final boolean component8() {
return this.isLocked;
}
public final boolean component9() {
return this.isNsfw;
}
public final ChannelListItemVoiceChannel copy(Channel channel, boolean z2, boolean z3, Long l, int i, boolean z4, int i2, boolean z5, boolean z6, boolean z7, GuildMaxVideoChannelUsers guildMaxVideoChannelUsers, boolean z8, boolean z9, GuildScheduledEvent guildScheduledEvent) {
m.checkNotNullParameter(channel, "channel");
m.checkNotNullParameter(guildMaxVideoChannelUsers, "guildMaxVideoChannelUsers");
return new ChannelListItemVoiceChannel(channel, z2, z3, l, i, z4, i2, z5, z6, z7, guildMaxVideoChannelUsers, z8, z9, guildScheduledEvent);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ChannelListItemVoiceChannel)) {
return false;
}
ChannelListItemVoiceChannel channelListItemVoiceChannel = (ChannelListItemVoiceChannel) obj;
return m.areEqual(getChannel(), channelListItemVoiceChannel.getChannel()) && this.textSelected == channelListItemVoiceChannel.textSelected && this.voiceSelected == channelListItemVoiceChannel.voiceSelected && m.areEqual(this.permission, channelListItemVoiceChannel.permission) && getMentionCount() == channelListItemVoiceChannel.getMentionCount() && isUnread() == channelListItemVoiceChannel.isUnread() && getNumUsersConnected() == channelListItemVoiceChannel.getNumUsersConnected() && this.isLocked == channelListItemVoiceChannel.isLocked && this.isNsfw == channelListItemVoiceChannel.isNsfw && this.isAnyoneUsingVideo == channelListItemVoiceChannel.isAnyoneUsingVideo && m.areEqual(this.guildMaxVideoChannelUsers, channelListItemVoiceChannel.guildMaxVideoChannelUsers) && this.isGuildRoleSubscriptionLockedChannel == channelListItemVoiceChannel.isGuildRoleSubscriptionLockedChannel && this.isGuildRoleSubscriptionChannel == channelListItemVoiceChannel.isGuildRoleSubscriptionChannel && m.areEqual(this.guildScheduledEvent, channelListItemVoiceChannel.guildScheduledEvent);
}
@Override // com.discord.widgets.channels.list.items.ChannelListVocalItem
public Channel getChannel() {
return this.channel;
}
public final GuildMaxVideoChannelUsers getGuildMaxVideoChannelUsers() {
return this.guildMaxVideoChannelUsers;
}
public final GuildScheduledEvent getGuildScheduledEvent() {
return this.guildScheduledEvent;
}
@Override // com.discord.widgets.channels.list.items.ChannelListItem, com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider
public String getKey() {
return this.key;
}
@Override // com.discord.widgets.channels.list.WidgetChannelListUnreads.UnreadItem
public int getMentionCount() {
return this.mentionCount;
}
@Override // com.discord.widgets.channels.list.items.ChannelListVocalItem
public int getNumUsersConnected() {
return this.numUsersConnected;
}
public final Long getPermission() {
return this.permission;
}
public final boolean getTextSelected() {
return this.textSelected;
}
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload
public int getType() {
return this.type;
}
public final boolean getVoiceSelected() {
return this.voiceSelected;
}
public int hashCode() {
Channel channel = getChannel();
int i = 0;
int hashCode = (channel != null ? channel.hashCode() : 0) * 31;
boolean z2 = this.textSelected;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (hashCode + i3) * 31;
boolean z3 = this.voiceSelected;
if (z3) {
z3 = true;
}
int i7 = z3 ? 1 : 0;
int i8 = z3 ? 1 : 0;
int i9 = z3 ? 1 : 0;
int i10 = (i6 + i7) * 31;
Long l = this.permission;
int mentionCount = (getMentionCount() + ((i10 + (l != null ? l.hashCode() : 0)) * 31)) * 31;
boolean isUnread = isUnread();
if (isUnread) {
isUnread = true;
}
int i11 = isUnread ? 1 : 0;
int i12 = isUnread ? 1 : 0;
int i13 = isUnread ? 1 : 0;
int numUsersConnected = (getNumUsersConnected() + ((mentionCount + i11) * 31)) * 31;
boolean z4 = this.isLocked;
if (z4) {
z4 = true;
}
int i14 = z4 ? 1 : 0;
int i15 = z4 ? 1 : 0;
int i16 = z4 ? 1 : 0;
int i17 = (numUsersConnected + i14) * 31;
boolean z5 = this.isNsfw;
if (z5) {
z5 = true;
}
int i18 = z5 ? 1 : 0;
int i19 = z5 ? 1 : 0;
int i20 = z5 ? 1 : 0;
int i21 = (i17 + i18) * 31;
boolean z6 = this.isAnyoneUsingVideo;
if (z6) {
z6 = true;
}
int i22 = z6 ? 1 : 0;
int i23 = z6 ? 1 : 0;
int i24 = z6 ? 1 : 0;
int i25 = (i21 + i22) * 31;
GuildMaxVideoChannelUsers guildMaxVideoChannelUsers = this.guildMaxVideoChannelUsers;
int hashCode2 = (i25 + (guildMaxVideoChannelUsers != null ? guildMaxVideoChannelUsers.hashCode() : 0)) * 31;
boolean z7 = this.isGuildRoleSubscriptionLockedChannel;
if (z7) {
z7 = true;
}
int i26 = z7 ? 1 : 0;
int i27 = z7 ? 1 : 0;
int i28 = z7 ? 1 : 0;
int i29 = (hashCode2 + i26) * 31;
boolean z8 = this.isGuildRoleSubscriptionChannel;
if (!z8) {
i2 = z8 ? 1 : 0;
}
int i30 = (i29 + i2) * 31;
GuildScheduledEvent guildScheduledEvent = this.guildScheduledEvent;
if (guildScheduledEvent != null) {
i = guildScheduledEvent.hashCode();
}
return i30 + i;
}
public final boolean isAnyoneUsingVideo() {
return this.isAnyoneUsingVideo;
}
public final boolean isGuildRoleSubscriptionChannel() {
return this.isGuildRoleSubscriptionChannel;
}
public final boolean isGuildRoleSubscriptionLockedChannel() {
return this.isGuildRoleSubscriptionLockedChannel;
}
public final boolean isLocked() {
return this.isLocked;
}
public final boolean isNsfw() {
return this.isNsfw;
}
@Override // com.discord.widgets.channels.list.WidgetChannelListUnreads.UnreadItem
public boolean isUnread() {
return this.isUnread;
}
public String toString() {
StringBuilder R = a.R("ChannelListItemVoiceChannel(channel=");
R.append(getChannel());
R.append(", textSelected=");
R.append(this.textSelected);
R.append(", voiceSelected=");
R.append(this.voiceSelected);
R.append(", permission=");
R.append(this.permission);
R.append(", mentionCount=");
R.append(getMentionCount());
R.append(", isUnread=");
R.append(isUnread());
R.append(", numUsersConnected=");
R.append(getNumUsersConnected());
R.append(", isLocked=");
R.append(this.isLocked);
R.append(", isNsfw=");
R.append(this.isNsfw);
R.append(", isAnyoneUsingVideo=");
R.append(this.isAnyoneUsingVideo);
R.append(", guildMaxVideoChannelUsers=");
R.append(this.guildMaxVideoChannelUsers);
R.append(", isGuildRoleSubscriptionLockedChannel=");
R.append(this.isGuildRoleSubscriptionLockedChannel);
R.append(", isGuildRoleSubscriptionChannel=");
R.append(this.isGuildRoleSubscriptionChannel);
R.append(", guildScheduledEvent=");
R.append(this.guildScheduledEvent);
R.append(")");
return R.toString();
}
}