forked from Juby210/discord-jadx
97 lines
3.4 KiB
Java
97 lines
3.4 KiB
Java
package com.discord.widgets.channels.list.items;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
|
|
import com.discord.models.guild.Guild;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
/* compiled from: ChannelListItemGuildScheduledEvents.kt */
|
|
public final class ChannelListItemGuildScheduledEvents implements ChannelListItem {
|
|
private final List<GuildScheduledEvent> data;
|
|
private final Guild guild;
|
|
private final String key = String.valueOf(getType());
|
|
private final int type = 19;
|
|
|
|
public ChannelListItemGuildScheduledEvents(List<GuildScheduledEvent> list, Guild guild) {
|
|
m.checkNotNullParameter(list, "data");
|
|
m.checkNotNullParameter(guild, "guild");
|
|
this.data = list;
|
|
this.guild = guild;
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.channels.list.items.ChannelListItemGuildScheduledEvents */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ ChannelListItemGuildScheduledEvents copy$default(ChannelListItemGuildScheduledEvents channelListItemGuildScheduledEvents, List list, Guild guild, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
list = channelListItemGuildScheduledEvents.data;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
guild = channelListItemGuildScheduledEvents.guild;
|
|
}
|
|
return channelListItemGuildScheduledEvents.copy(list, guild);
|
|
}
|
|
|
|
public final List<GuildScheduledEvent> component1() {
|
|
return this.data;
|
|
}
|
|
|
|
public final Guild component2() {
|
|
return this.guild;
|
|
}
|
|
|
|
public final ChannelListItemGuildScheduledEvents copy(List<GuildScheduledEvent> list, Guild guild) {
|
|
m.checkNotNullParameter(list, "data");
|
|
m.checkNotNullParameter(guild, "guild");
|
|
return new ChannelListItemGuildScheduledEvents(list, guild);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof ChannelListItemGuildScheduledEvents)) {
|
|
return false;
|
|
}
|
|
ChannelListItemGuildScheduledEvents channelListItemGuildScheduledEvents = (ChannelListItemGuildScheduledEvents) obj;
|
|
return m.areEqual(this.data, channelListItemGuildScheduledEvents.data) && m.areEqual(this.guild, channelListItemGuildScheduledEvents.guild);
|
|
}
|
|
|
|
public final List<GuildScheduledEvent> getData() {
|
|
return this.data;
|
|
}
|
|
|
|
public final Guild getGuild() {
|
|
return this.guild;
|
|
}
|
|
|
|
@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.utilities.mg_recycler.MGRecyclerDataPayload
|
|
public int getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public int hashCode() {
|
|
List<GuildScheduledEvent> list = this.data;
|
|
int i = 0;
|
|
int hashCode = (list != null ? list.hashCode() : 0) * 31;
|
|
Guild guild = this.guild;
|
|
if (guild != null) {
|
|
i = guild.hashCode();
|
|
}
|
|
return hashCode + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("ChannelListItemGuildScheduledEvents(data=");
|
|
R.append(this.data);
|
|
R.append(", guild=");
|
|
R.append(this.guild);
|
|
R.append(")");
|
|
return R.toString();
|
|
}
|
|
}
|