97 lines
3.2 KiB
Java
97 lines
3.2 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 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) {
|
|
super(null);
|
|
m.checkNotNullParameter(guildScheduledEvent, "event");
|
|
this.event = guildScheduledEvent;
|
|
this.key = String.valueOf(guildScheduledEvent.b());
|
|
}
|
|
|
|
public static /* synthetic */ Event copy$default(Event event, GuildScheduledEvent guildScheduledEvent, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
guildScheduledEvent = event.event;
|
|
}
|
|
return event.copy(guildScheduledEvent);
|
|
}
|
|
|
|
public final GuildScheduledEvent component1() {
|
|
return this.event;
|
|
}
|
|
|
|
public final Event copy(GuildScheduledEvent guildScheduledEvent) {
|
|
m.checkNotNullParameter(guildScheduledEvent, "event");
|
|
return new Event(guildScheduledEvent);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this != obj) {
|
|
return (obj instanceof Event) && m.areEqual(this.event, ((Event) obj).event);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
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;
|
|
if (guildScheduledEvent != null) {
|
|
return guildScheduledEvent.hashCode();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("Event(event=");
|
|
L.append(this.event);
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|
|
|
|
private GuildScheduledEventListItem() {
|
|
}
|
|
|
|
public /* synthetic */ GuildScheduledEventListItem(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
}
|