97 lines
3.3 KiB
Java
97 lines
3.3 KiB
Java
package com.discord.api.guildscheduledevent;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
import java.io.Serializable;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: GuildScheduledEventEntityMetadata.kt */
|
|
public final class GuildScheduledEventEntityMetadata implements Serializable {
|
|
public static final Companion Companion = new Companion(null);
|
|
private final String location;
|
|
private final List<Long> speakerIds;
|
|
|
|
/* compiled from: GuildScheduledEventEntityMetadata.kt */
|
|
public static final class Companion {
|
|
|
|
public final /* synthetic */ class WhenMappings {
|
|
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
|
|
|
static {
|
|
GuildScheduledEventEntityType.values();
|
|
int[] iArr = new int[5];
|
|
$EnumSwitchMapping$0 = iArr;
|
|
iArr[GuildScheduledEventEntityType.STAGE_INSTANCE.ordinal()] = 1;
|
|
iArr[GuildScheduledEventEntityType.EXTERNAL.ordinal()] = 2;
|
|
}
|
|
}
|
|
|
|
public Companion() {
|
|
}
|
|
|
|
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
}
|
|
|
|
public final GuildScheduledEventEntityMetadata a(GuildScheduledEventEntityType guildScheduledEventEntityType, List<Long> list, String str) {
|
|
m.checkNotNullParameter(guildScheduledEventEntityType, "entityType");
|
|
int ordinal = guildScheduledEventEntityType.ordinal();
|
|
return ordinal != 1 ? ordinal != 3 ? new GuildScheduledEventEntityMetadata(null, null, 3) : new GuildScheduledEventEntityMetadata(null, str, 1) : new GuildScheduledEventEntityMetadata(list, null, 2);
|
|
}
|
|
}
|
|
|
|
public GuildScheduledEventEntityMetadata() {
|
|
this(null, null, 3);
|
|
}
|
|
|
|
public GuildScheduledEventEntityMetadata(List list, String str, int i) {
|
|
list = (i & 1) != 0 ? null : list;
|
|
str = (i & 2) != 0 ? null : str;
|
|
this.speakerIds = list;
|
|
this.location = str;
|
|
}
|
|
|
|
public final String a() {
|
|
return this.location;
|
|
}
|
|
|
|
public final List<Long> b() {
|
|
return this.speakerIds;
|
|
}
|
|
|
|
public final boolean c() {
|
|
return this.speakerIds == null && this.location == null;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof GuildScheduledEventEntityMetadata)) {
|
|
return false;
|
|
}
|
|
GuildScheduledEventEntityMetadata guildScheduledEventEntityMetadata = (GuildScheduledEventEntityMetadata) obj;
|
|
return m.areEqual(this.speakerIds, guildScheduledEventEntityMetadata.speakerIds) && m.areEqual(this.location, guildScheduledEventEntityMetadata.location);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
List<Long> list = this.speakerIds;
|
|
int i = 0;
|
|
int hashCode = (list != null ? list.hashCode() : 0) * 31;
|
|
String str = this.location;
|
|
if (str != null) {
|
|
i = str.hashCode();
|
|
}
|
|
return hashCode + i;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder P = a.P("GuildScheduledEventEntityMetadata(speakerIds=");
|
|
P.append(this.speakerIds);
|
|
P.append(", location=");
|
|
return a.H(P, this.location, ")");
|
|
}
|
|
}
|