discord-jadx/app/src/main/java/com/discord/widgets/stage/start/ModeratorStartStageItem.java
2021-10-15 08:18:26 +02:00

571 lines
21 KiB
Java

package com.discord.widgets.stage.start;
import androidx.annotation.ColorRes;
import androidx.annotation.DrawableRes;
import androidx.annotation.StringRes;
import c.d.b.a.a;
import c0.z.d.m;
import com.discord.R;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.models.guild.UserGuildMember;
import com.discord.utilities.mg_recycler.MGRecyclerDataPayload;
import java.util.List;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: ModeratorStartStageItem.kt */
public abstract class ModeratorStartStageItem implements MGRecyclerDataPayload {
public static final Companion Companion = new Companion(null);
public static final String KEY_SCHEDULE_EVENT = "KEY_SCHEDULE_EVENT";
public static final String KEY_START_STAGE = "KEY_START_STAGE";
public static final int TYPE_CONTINUE = 2;
public static final int TYPE_HEADER = 0;
public static final int TYPE_LIST_ITEM = 1;
public static final int TYPE_WAITING = 3;
/* compiled from: ModeratorStartStageItem.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
/* compiled from: ModeratorStartStageItem.kt */
public static final class Continue extends ModeratorStartStageItem {
private final String key;
private final int type;
public Continue() {
this(0, null, 3, null);
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public Continue(int i, String str) {
super(null);
m.checkNotNullParameter(str, "key");
this.type = i;
this.key = str;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ Continue(int i, String str, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this((i2 & 1) != 0 ? 2 : i, (i2 & 2) != 0 ? "KEY_CREATE_STAGE_EVENT_CONTINUE" : str);
}
public static /* synthetic */ Continue copy$default(Continue r0, int i, String str, int i2, Object obj) {
if ((i2 & 1) != 0) {
i = r0.getType();
}
if ((i2 & 2) != 0) {
str = r0.getKey();
}
return r0.copy(i, str);
}
public final int component1() {
return getType();
}
public final String component2() {
return getKey();
}
public final Continue copy(int i, String str) {
m.checkNotNullParameter(str, "key");
return new Continue(i, str);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Continue)) {
return false;
}
Continue r3 = (Continue) obj;
return getType() == r3.getType() && m.areEqual(getKey(), r3.getKey());
}
@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() {
int type = getType() * 31;
String key = getKey();
return type + (key != null ? key.hashCode() : 0);
}
public String toString() {
StringBuilder O = a.O("Continue(type=");
O.append(getType());
O.append(", key=");
O.append(getKey());
O.append(")");
return O.toString();
}
}
/* compiled from: ModeratorStartStageItem.kt */
public static final class Header extends ModeratorStartStageItem {
private final String key;
private final int type;
public Header() {
this(0, null, 3, null);
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public Header(int i, String str) {
super(null);
m.checkNotNullParameter(str, "key");
this.type = i;
this.key = str;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ Header(int i, String str, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this((i2 & 1) != 0 ? 0 : i, (i2 & 2) != 0 ? "KEY_CREATE_STAGE_EVENT_HEADER" : str);
}
public static /* synthetic */ Header copy$default(Header header, int i, String str, int i2, Object obj) {
if ((i2 & 1) != 0) {
i = header.getType();
}
if ((i2 & 2) != 0) {
str = header.getKey();
}
return header.copy(i, str);
}
public final int component1() {
return getType();
}
public final String component2() {
return getKey();
}
public final Header copy(int i, String str) {
m.checkNotNullParameter(str, "key");
return new Header(i, str);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Header)) {
return false;
}
Header header = (Header) obj;
return getType() == header.getType() && m.areEqual(getKey(), header.getKey());
}
@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() {
int type = getType() * 31;
String key = getKey();
return type + (key != null ? key.hashCode() : 0);
}
public String toString() {
StringBuilder O = a.O("Header(type=");
O.append(getType());
O.append(", key=");
O.append(getKey());
O.append(")");
return O.toString();
}
}
/* compiled from: ModeratorStartStageItem.kt */
public static abstract class ListItem extends ModeratorStartStageItem {
private final int iconBgColorRes;
private final int iconRes;
private final String key;
private final int type;
/* compiled from: ModeratorStartStageItem.kt */
public static final class Event extends ListItem {
private final GuildScheduledEvent event;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public Event(GuildScheduledEvent guildScheduledEvent) {
super(0, String.valueOf(guildScheduledEvent.g()), R.drawable.ic_event_20dp, R.color.status_green_600, 1, null);
m.checkNotNullParameter(guildScheduledEvent, "event");
this.event = guildScheduledEvent;
}
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;
}
public int hashCode() {
GuildScheduledEvent guildScheduledEvent = this.event;
if (guildScheduledEvent != null) {
return guildScheduledEvent.hashCode();
}
return 0;
}
public String toString() {
StringBuilder O = a.O("Event(event=");
O.append(this.event);
O.append(")");
return O.toString();
}
}
/* compiled from: ModeratorStartStageItem.kt */
public static abstract class StaticOption extends ListItem {
private final int iconBgColorRes;
private final int iconRes;
private final String key;
private final int subtitleRes;
private final int titleRes;
/* compiled from: ModeratorStartStageItem.kt */
public static final class ScheduleEvent extends StaticOption {
private final String key;
public ScheduleEvent() {
this(null, 1, null);
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public ScheduleEvent(String str) {
super(str, R.drawable.ic_event_20dp, R.color.brand_new_500, R.string.schedule_event, R.string.schedule_event_description, null);
m.checkNotNullParameter(str, "key");
this.key = str;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ ScheduleEvent(String str, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? ModeratorStartStageItem.KEY_SCHEDULE_EVENT : str);
}
public static /* synthetic */ ScheduleEvent copy$default(ScheduleEvent scheduleEvent, String str, int i, Object obj) {
if ((i & 1) != 0) {
str = scheduleEvent.getKey();
}
return scheduleEvent.copy(str);
}
public final String component1() {
return getKey();
}
public final ScheduleEvent copy(String str) {
m.checkNotNullParameter(str, "key");
return new ScheduleEvent(str);
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof ScheduleEvent) && m.areEqual(getKey(), ((ScheduleEvent) obj).getKey());
}
return true;
}
@Override // com.discord.widgets.stage.start.ModeratorStartStageItem.ListItem.StaticOption, com.discord.widgets.stage.start.ModeratorStartStageItem.ListItem, com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider
public String getKey() {
return this.key;
}
public int hashCode() {
String key = getKey();
if (key != null) {
return key.hashCode();
}
return 0;
}
public String toString() {
StringBuilder O = a.O("ScheduleEvent(key=");
O.append(getKey());
O.append(")");
return O.toString();
}
}
/* compiled from: ModeratorStartStageItem.kt */
public static final class StartStage extends StaticOption {
private final String key;
public StartStage() {
this(null, 1, null);
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StartStage(String str) {
super(str, R.drawable.ic_channel_stage_24dp, R.color.status_green_600, R.string.stage_channel_start_title, R.string.stage_channel_start_subtitle, null);
m.checkNotNullParameter(str, "key");
this.key = str;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ StartStage(String str, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? ModeratorStartStageItem.KEY_START_STAGE : str);
}
public static /* synthetic */ StartStage copy$default(StartStage startStage, String str, int i, Object obj) {
if ((i & 1) != 0) {
str = startStage.getKey();
}
return startStage.copy(str);
}
public final String component1() {
return getKey();
}
public final StartStage copy(String str) {
m.checkNotNullParameter(str, "key");
return new StartStage(str);
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof StartStage) && m.areEqual(getKey(), ((StartStage) obj).getKey());
}
return true;
}
@Override // com.discord.widgets.stage.start.ModeratorStartStageItem.ListItem.StaticOption, com.discord.widgets.stage.start.ModeratorStartStageItem.ListItem, com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider
public String getKey() {
return this.key;
}
public int hashCode() {
String key = getKey();
if (key != null) {
return key.hashCode();
}
return 0;
}
public String toString() {
StringBuilder O = a.O("StartStage(key=");
O.append(getKey());
O.append(")");
return O.toString();
}
}
private StaticOption(String str, int i, int i2, @StringRes int i3, @StringRes int i4) {
super(0, str, i, i2, 1, null);
this.key = str;
this.iconRes = i;
this.iconBgColorRes = i2;
this.titleRes = i3;
this.subtitleRes = i4;
}
public /* synthetic */ StaticOption(String str, int i, int i2, int i3, int i4, DefaultConstructorMarker defaultConstructorMarker) {
this(str, i, i2, i3, i4);
}
@Override // com.discord.widgets.stage.start.ModeratorStartStageItem.ListItem
public int getIconBgColorRes() {
return this.iconBgColorRes;
}
@Override // com.discord.widgets.stage.start.ModeratorStartStageItem.ListItem
public int getIconRes() {
return this.iconRes;
}
@Override // com.discord.widgets.stage.start.ModeratorStartStageItem.ListItem, com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider
public String getKey() {
return this.key;
}
public final int getSubtitleRes() {
return this.subtitleRes;
}
public final int getTitleRes() {
return this.titleRes;
}
}
private ListItem(int i, String str, @DrawableRes int i2, @ColorRes int i3) {
super(null);
this.type = i;
this.key = str;
this.iconRes = i2;
this.iconBgColorRes = i3;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ ListItem(int i, String str, int i2, int i3, int i4, DefaultConstructorMarker defaultConstructorMarker) {
this((i4 & 1) != 0 ? 1 : i, str, i2, i3);
}
public int getIconBgColorRes() {
return this.iconBgColorRes;
}
public int getIconRes() {
return this.iconRes;
}
@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;
}
}
/* compiled from: ModeratorStartStageItem.kt */
public static final class Waiting extends ModeratorStartStageItem {
private final String key;
private final int type;
private final List<UserGuildMember> users;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public Waiting(int i, String str, List<UserGuildMember> list) {
super(null);
m.checkNotNullParameter(str, "key");
m.checkNotNullParameter(list, "users");
this.type = i;
this.key = str;
this.users = list;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ Waiting(int i, String str, List list, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this((i2 & 1) != 0 ? 3 : i, (i2 & 2) != 0 ? "KEY_CREATE_STAGE_EVENT_WAITING" : str, list);
}
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.stage.start.ModeratorStartStageItem$Waiting */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ Waiting copy$default(Waiting waiting, int i, String str, List list, int i2, Object obj) {
if ((i2 & 1) != 0) {
i = waiting.getType();
}
if ((i2 & 2) != 0) {
str = waiting.getKey();
}
if ((i2 & 4) != 0) {
list = waiting.users;
}
return waiting.copy(i, str, list);
}
public final int component1() {
return getType();
}
public final String component2() {
return getKey();
}
public final List<UserGuildMember> component3() {
return this.users;
}
public final Waiting copy(int i, String str, List<UserGuildMember> list) {
m.checkNotNullParameter(str, "key");
m.checkNotNullParameter(list, "users");
return new Waiting(i, str, list);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Waiting)) {
return false;
}
Waiting waiting = (Waiting) obj;
return getType() == waiting.getType() && m.areEqual(getKey(), waiting.getKey()) && m.areEqual(this.users, waiting.users);
}
@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 final List<UserGuildMember> getUsers() {
return this.users;
}
public int hashCode() {
int type = getType() * 31;
String key = getKey();
int i = 0;
int hashCode = (type + (key != null ? key.hashCode() : 0)) * 31;
List<UserGuildMember> list = this.users;
if (list != null) {
i = list.hashCode();
}
return hashCode + i;
}
public String toString() {
StringBuilder O = a.O("Waiting(type=");
O.append(getType());
O.append(", key=");
O.append(getKey());
O.append(", users=");
return a.H(O, this.users, ")");
}
}
private ModeratorStartStageItem() {
}
public /* synthetic */ ModeratorStartStageItem(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}