forked from Juby210/discord-jadx
168 lines
6.4 KiB
Java
168 lines
6.4 KiB
Java
package com.discord.widgets.guilds.join;
|
|
|
|
import a0.a.a.b;
|
|
import b.d.b.a.a;
|
|
import com.discord.api.guild.welcome.GuildWelcomeChannel;
|
|
import d0.z.d.m;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: WidgetGuildWelcomeSheetChannelAdapter.kt */
|
|
public abstract class ChannelItem {
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final int TYPE_CHANNEL = 0;
|
|
private final int type;
|
|
|
|
/* compiled from: WidgetGuildWelcomeSheetChannelAdapter.kt */
|
|
public static final class ChannelData extends ChannelItem {
|
|
private final Function0<Unit> dismissSheet;
|
|
private final Function2<Long, Integer, Unit> goToChannel;
|
|
private final long guildId;
|
|
private final int index;
|
|
private final GuildWelcomeChannel welcomeChannel;
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r7v0, resolved type: kotlin.jvm.functions.Function2<? super java.lang.Long, ? super java.lang.Integer, kotlin.Unit> */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public ChannelData(GuildWelcomeChannel guildWelcomeChannel, Function0<Unit> function0, long j, Function2<? super Long, ? super Integer, Unit> function2, int i) {
|
|
super(0, null);
|
|
m.checkNotNullParameter(guildWelcomeChannel, "welcomeChannel");
|
|
m.checkNotNullParameter(function0, "dismissSheet");
|
|
m.checkNotNullParameter(function2, "goToChannel");
|
|
this.welcomeChannel = guildWelcomeChannel;
|
|
this.dismissSheet = function0;
|
|
this.guildId = j;
|
|
this.goToChannel = function2;
|
|
this.index = i;
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: com.discord.widgets.guilds.join.ChannelItem$ChannelData */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ ChannelData copy$default(ChannelData channelData, GuildWelcomeChannel guildWelcomeChannel, Function0 function0, long j, Function2 function2, int i, int i2, Object obj) {
|
|
if ((i2 & 1) != 0) {
|
|
guildWelcomeChannel = channelData.welcomeChannel;
|
|
}
|
|
if ((i2 & 2) != 0) {
|
|
function0 = channelData.dismissSheet;
|
|
}
|
|
if ((i2 & 4) != 0) {
|
|
j = channelData.guildId;
|
|
}
|
|
if ((i2 & 8) != 0) {
|
|
function2 = channelData.goToChannel;
|
|
}
|
|
if ((i2 & 16) != 0) {
|
|
i = channelData.index;
|
|
}
|
|
return channelData.copy(guildWelcomeChannel, function0, j, function2, i);
|
|
}
|
|
|
|
public final GuildWelcomeChannel component1() {
|
|
return this.welcomeChannel;
|
|
}
|
|
|
|
public final Function0<Unit> component2() {
|
|
return this.dismissSheet;
|
|
}
|
|
|
|
public final long component3() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final Function2<Long, Integer, Unit> component4() {
|
|
return this.goToChannel;
|
|
}
|
|
|
|
public final int component5() {
|
|
return this.index;
|
|
}
|
|
|
|
public final ChannelData copy(GuildWelcomeChannel guildWelcomeChannel, Function0<Unit> function0, long j, Function2<? super Long, ? super Integer, Unit> function2, int i) {
|
|
m.checkNotNullParameter(guildWelcomeChannel, "welcomeChannel");
|
|
m.checkNotNullParameter(function0, "dismissSheet");
|
|
m.checkNotNullParameter(function2, "goToChannel");
|
|
return new ChannelData(guildWelcomeChannel, function0, j, function2, i);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof ChannelData)) {
|
|
return false;
|
|
}
|
|
ChannelData channelData = (ChannelData) obj;
|
|
return m.areEqual(this.welcomeChannel, channelData.welcomeChannel) && m.areEqual(this.dismissSheet, channelData.dismissSheet) && this.guildId == channelData.guildId && m.areEqual(this.goToChannel, channelData.goToChannel) && this.index == channelData.index;
|
|
}
|
|
|
|
public final Function0<Unit> getDismissSheet() {
|
|
return this.dismissSheet;
|
|
}
|
|
|
|
public final Function2<Long, Integer, Unit> getGoToChannel() {
|
|
return this.goToChannel;
|
|
}
|
|
|
|
public final long getGuildId() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final int getIndex() {
|
|
return this.index;
|
|
}
|
|
|
|
public final GuildWelcomeChannel getWelcomeChannel() {
|
|
return this.welcomeChannel;
|
|
}
|
|
|
|
public int hashCode() {
|
|
GuildWelcomeChannel guildWelcomeChannel = this.welcomeChannel;
|
|
int i = 0;
|
|
int hashCode = (guildWelcomeChannel != null ? guildWelcomeChannel.hashCode() : 0) * 31;
|
|
Function0<Unit> function0 = this.dismissSheet;
|
|
int a = (b.a(this.guildId) + ((hashCode + (function0 != null ? function0.hashCode() : 0)) * 31)) * 31;
|
|
Function2<Long, Integer, Unit> function2 = this.goToChannel;
|
|
if (function2 != null) {
|
|
i = function2.hashCode();
|
|
}
|
|
return ((a + i) * 31) + this.index;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("ChannelData(welcomeChannel=");
|
|
R.append(this.welcomeChannel);
|
|
R.append(", dismissSheet=");
|
|
R.append(this.dismissSheet);
|
|
R.append(", guildId=");
|
|
R.append(this.guildId);
|
|
R.append(", goToChannel=");
|
|
R.append(this.goToChannel);
|
|
R.append(", index=");
|
|
return a.A(R, this.index, ")");
|
|
}
|
|
}
|
|
|
|
/* compiled from: WidgetGuildWelcomeSheetChannelAdapter.kt */
|
|
public static final class Companion {
|
|
private Companion() {
|
|
}
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
private ChannelItem(int i) {
|
|
this.type = i;
|
|
}
|
|
|
|
public /* synthetic */ ChannelItem(int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(i);
|
|
}
|
|
|
|
public final int getType() {
|
|
return this.type;
|
|
}
|
|
}
|