185 lines
6.1 KiB
Java
185 lines
6.1 KiB
Java
package com.discord.widgets.guildscheduledevent;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.api.channel.Channel;
|
|
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 boolean canShare;
|
|
private final boolean canStartEvent;
|
|
private final Channel channel;
|
|
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, Channel channel, boolean z2, boolean z3, boolean z4) {
|
|
super(null);
|
|
m.checkNotNullParameter(guildScheduledEvent, "event");
|
|
this.event = guildScheduledEvent;
|
|
this.channel = channel;
|
|
this.isRsvped = z2;
|
|
this.canStartEvent = z3;
|
|
this.canShare = z4;
|
|
this.key = String.valueOf(guildScheduledEvent.g());
|
|
}
|
|
|
|
public static /* synthetic */ Event copy$default(Event event, GuildScheduledEvent guildScheduledEvent, Channel channel, boolean z2, boolean z3, boolean z4, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
guildScheduledEvent = event.event;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
channel = event.channel;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
z2 = event.isRsvped;
|
|
}
|
|
if ((i & 8) != 0) {
|
|
z3 = event.canStartEvent;
|
|
}
|
|
if ((i & 16) != 0) {
|
|
z4 = event.canShare;
|
|
}
|
|
return event.copy(guildScheduledEvent, channel, z2, z3, z4);
|
|
}
|
|
|
|
public final GuildScheduledEvent component1() {
|
|
return this.event;
|
|
}
|
|
|
|
public final Channel component2() {
|
|
return this.channel;
|
|
}
|
|
|
|
public final boolean component3() {
|
|
return this.isRsvped;
|
|
}
|
|
|
|
public final boolean component4() {
|
|
return this.canStartEvent;
|
|
}
|
|
|
|
public final boolean component5() {
|
|
return this.canShare;
|
|
}
|
|
|
|
public final Event copy(GuildScheduledEvent guildScheduledEvent, Channel channel, boolean z2, boolean z3, boolean z4) {
|
|
m.checkNotNullParameter(guildScheduledEvent, "event");
|
|
return new Event(guildScheduledEvent, channel, z2, z3, z4);
|
|
}
|
|
|
|
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) && m.areEqual(this.channel, event.channel) && this.isRsvped == event.isRsvped && this.canStartEvent == event.canStartEvent && this.canShare == event.canShare;
|
|
}
|
|
|
|
public final boolean getCanShare() {
|
|
return this.canShare;
|
|
}
|
|
|
|
public final boolean getCanStartEvent() {
|
|
return this.canStartEvent;
|
|
}
|
|
|
|
public final Channel getChannel() {
|
|
return this.channel;
|
|
}
|
|
|
|
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 i = 0;
|
|
int hashCode = (guildScheduledEvent != null ? guildScheduledEvent.hashCode() : 0) * 31;
|
|
Channel channel = this.channel;
|
|
if (channel != null) {
|
|
i = channel.hashCode();
|
|
}
|
|
int i2 = (hashCode + i) * 31;
|
|
boolean z2 = this.isRsvped;
|
|
int i3 = 1;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i4 = z2 ? 1 : 0;
|
|
int i5 = z2 ? 1 : 0;
|
|
int i6 = z2 ? 1 : 0;
|
|
int i7 = (i2 + i4) * 31;
|
|
boolean z3 = this.canStartEvent;
|
|
if (z3) {
|
|
z3 = true;
|
|
}
|
|
int i8 = z3 ? 1 : 0;
|
|
int i9 = z3 ? 1 : 0;
|
|
int i10 = z3 ? 1 : 0;
|
|
int i11 = (i7 + i8) * 31;
|
|
boolean z4 = this.canShare;
|
|
if (!z4) {
|
|
i3 = z4 ? 1 : 0;
|
|
}
|
|
return i11 + i3;
|
|
}
|
|
|
|
public final boolean isRsvped() {
|
|
return this.isRsvped;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("Event(event=");
|
|
L.append(this.event);
|
|
L.append(", channel=");
|
|
L.append(this.channel);
|
|
L.append(", isRsvped=");
|
|
L.append(this.isRsvped);
|
|
L.append(", canStartEvent=");
|
|
L.append(this.canStartEvent);
|
|
L.append(", canShare=");
|
|
return a.G(L, this.canShare, ")");
|
|
}
|
|
}
|
|
|
|
private GuildScheduledEventListItem() {
|
|
}
|
|
|
|
public /* synthetic */ GuildScheduledEventListItem(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
}
|