discord-jadx/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListItem...

119 lines
3.9 KiB
Java

package com.discord.widgets.guildscheduledevent;
import c.d.b.a.a;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.utilities.mg_recycler.MGRecyclerDataPayload;
import d0.z.d.m;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: GuildScheduledEventListItem.kt */
public abstract class GuildScheduledEventListItem implements MGRecyclerDataPayload {
public static final Companion Companion = new Companion(null);
public static final int TYPE_EVENT = 0;
/* compiled from: GuildScheduledEventListItem.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
/* compiled from: GuildScheduledEventListItem.kt */
public static final class Event extends GuildScheduledEventListItem {
private final GuildScheduledEvent event;
private final boolean isRsvped;
private final String key;
private final int type;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public Event(GuildScheduledEvent guildScheduledEvent, boolean z2) {
super(null);
m.checkNotNullParameter(guildScheduledEvent, "event");
this.event = guildScheduledEvent;
this.isRsvped = z2;
this.key = String.valueOf(guildScheduledEvent.d());
}
public static /* synthetic */ Event copy$default(Event event, GuildScheduledEvent guildScheduledEvent, boolean z2, int i, Object obj) {
if ((i & 1) != 0) {
guildScheduledEvent = event.event;
}
if ((i & 2) != 0) {
z2 = event.isRsvped;
}
return event.copy(guildScheduledEvent, z2);
}
public final GuildScheduledEvent component1() {
return this.event;
}
public final boolean component2() {
return this.isRsvped;
}
public final Event copy(GuildScheduledEvent guildScheduledEvent, boolean z2) {
m.checkNotNullParameter(guildScheduledEvent, "event");
return new Event(guildScheduledEvent, z2);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Event)) {
return false;
}
Event event = (Event) obj;
return m.areEqual(this.event, event.event) && this.isRsvped == event.isRsvped;
}
public final GuildScheduledEvent getEvent() {
return this.event;
}
@Override // 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() {
GuildScheduledEvent guildScheduledEvent = this.event;
int hashCode = (guildScheduledEvent != null ? guildScheduledEvent.hashCode() : 0) * 31;
boolean z2 = this.isRsvped;
if (z2) {
z2 = true;
}
int i = z2 ? 1 : 0;
int i2 = z2 ? 1 : 0;
int i3 = z2 ? 1 : 0;
return hashCode + i;
}
public final boolean isRsvped() {
return this.isRsvped;
}
public String toString() {
StringBuilder K = a.K("Event(event=");
K.append(this.event);
K.append(", isRsvped=");
return a.F(K, this.isRsvped, ")");
}
}
private GuildScheduledEventListItem() {
}
public /* synthetic */ GuildScheduledEventListItem(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}