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 com.discord.utilities.mg_recycler.MGRecyclerDataPayload; import d0.z.d.m; import kotlin.jvm.internal.DefaultConstructorMarker; /* compiled from: StartStageItem.kt */ public abstract class StartStageItem 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_HEADER = 0; public static final int TYPE_LIST_ITEM = 1; /* compiled from: StartStageItem.kt */ public static final class Companion { private Companion() { } public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { this(); } } /* compiled from: StartStageItem.kt */ public static final class Header extends StartStageItem { 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 K = a.K("Header(type="); K.append(getType()); K.append(", key="); K.append(getKey()); K.append(")"); return K.toString(); } } /* compiled from: StartStageItem.kt */ public static abstract class ListItem extends StartStageItem { private final int iconBgColorRes; private final int iconRes; private final String key; private final int subtitleRes; private final int titleRes; private final int type; /* compiled from: StartStageItem.kt */ public static final class ScheduleEvent extends ListItem { 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(0, str, 2131231606, 2131099764, 2131893151, 2131893152, 1, 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 ? "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.StartStageItem.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 K = a.K("ScheduleEvent(key="); K.append(getKey()); K.append(")"); return K.toString(); } } /* compiled from: StartStageItem.kt */ public static final class StartStage extends ListItem { 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(0, str, 2131231493, 2131100249, 2131893538, 2131893537, 1, 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 ? "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.StartStageItem.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 K = a.K("StartStage(key="); K.append(getKey()); K.append(")"); return K.toString(); } } private ListItem(int i, String str, @DrawableRes int i2, @ColorRes int i3, @StringRes int i4, @StringRes int i5) { super(null); this.type = i; this.key = str; this.iconRes = i2; this.iconBgColorRes = i3; this.titleRes = i4; this.subtitleRes = i5; } /* 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, int i5, int i6, DefaultConstructorMarker defaultConstructorMarker) { this((i6 & 1) != 0 ? 1 : i, str, i2, i3, i4, i5); } public final int getIconBgColorRes() { return this.iconBgColorRes; } public final int getIconRes() { return this.iconRes; } @Override // 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; } @Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload public int getType() { return this.type; } } private StartStageItem() { } public /* synthetic */ StartStageItem(DefaultConstructorMarker defaultConstructorMarker) { this(); } }