204 lines
7.2 KiB
Java
204 lines
7.2 KiB
Java
package com.discord.widgets.nux;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: WidgetGuildTemplates.kt */
|
|
public final class GuildTemplateArgs implements Parcelable {
|
|
public static final Parcelable.Creator<GuildTemplateArgs> CREATOR = new Creator();
|
|
private final boolean showInvitePrompt;
|
|
private final boolean skipCreationIntent;
|
|
private final String subtitle;
|
|
private final List<GuildTemplate> templates;
|
|
private final String title;
|
|
|
|
public static class Creator implements Parcelable.Creator<GuildTemplateArgs> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final GuildTemplateArgs createFromParcel(Parcel parcel) {
|
|
m.checkNotNullParameter(parcel, "in");
|
|
String readString = parcel.readString();
|
|
String readString2 = parcel.readString();
|
|
int readInt = parcel.readInt();
|
|
ArrayList arrayList = new ArrayList(readInt);
|
|
while (readInt != 0) {
|
|
arrayList.add((GuildTemplate) Enum.valueOf(GuildTemplate.class, parcel.readString()));
|
|
readInt--;
|
|
}
|
|
boolean z2 = false;
|
|
boolean z3 = parcel.readInt() != 0;
|
|
if (parcel.readInt() != 0) {
|
|
z2 = true;
|
|
}
|
|
return new GuildTemplateArgs(readString, readString2, arrayList, z3, z2);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final GuildTemplateArgs[] newArray(int i) {
|
|
return new GuildTemplateArgs[i];
|
|
}
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: java.util.List<? extends com.discord.widgets.nux.GuildTemplate> */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public GuildTemplateArgs(String str, String str2, List<? extends GuildTemplate> list, boolean z2, boolean z3) {
|
|
m.checkNotNullParameter(str, "title");
|
|
m.checkNotNullParameter(str2, "subtitle");
|
|
m.checkNotNullParameter(list, "templates");
|
|
this.title = str;
|
|
this.subtitle = str2;
|
|
this.templates = list;
|
|
this.showInvitePrompt = z2;
|
|
this.skipCreationIntent = z3;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ GuildTemplateArgs(String str, String str2, List list, boolean z2, boolean z3, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(str, str2, (i & 4) != 0 ? GuildTemplateTypes.INSTANCE.getNUX() : list, (i & 8) != 0 ? true : z2, (i & 16) != 0 ? false : z3);
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: com.discord.widgets.nux.GuildTemplateArgs */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ GuildTemplateArgs copy$default(GuildTemplateArgs guildTemplateArgs, String str, String str2, List list, boolean z2, boolean z3, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = guildTemplateArgs.title;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
str2 = guildTemplateArgs.subtitle;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
list = guildTemplateArgs.templates;
|
|
}
|
|
if ((i & 8) != 0) {
|
|
z2 = guildTemplateArgs.showInvitePrompt;
|
|
}
|
|
if ((i & 16) != 0) {
|
|
z3 = guildTemplateArgs.skipCreationIntent;
|
|
}
|
|
return guildTemplateArgs.copy(str, str2, list, z2, z3);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.title;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.subtitle;
|
|
}
|
|
|
|
public final List<GuildTemplate> component3() {
|
|
return this.templates;
|
|
}
|
|
|
|
public final boolean component4() {
|
|
return this.showInvitePrompt;
|
|
}
|
|
|
|
public final boolean component5() {
|
|
return this.skipCreationIntent;
|
|
}
|
|
|
|
public final GuildTemplateArgs copy(String str, String str2, List<? extends GuildTemplate> list, boolean z2, boolean z3) {
|
|
m.checkNotNullParameter(str, "title");
|
|
m.checkNotNullParameter(str2, "subtitle");
|
|
m.checkNotNullParameter(list, "templates");
|
|
return new GuildTemplateArgs(str, str2, list, z2, z3);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof GuildTemplateArgs)) {
|
|
return false;
|
|
}
|
|
GuildTemplateArgs guildTemplateArgs = (GuildTemplateArgs) obj;
|
|
return m.areEqual(this.title, guildTemplateArgs.title) && m.areEqual(this.subtitle, guildTemplateArgs.subtitle) && m.areEqual(this.templates, guildTemplateArgs.templates) && this.showInvitePrompt == guildTemplateArgs.showInvitePrompt && this.skipCreationIntent == guildTemplateArgs.skipCreationIntent;
|
|
}
|
|
|
|
public final boolean getShowInvitePrompt() {
|
|
return this.showInvitePrompt;
|
|
}
|
|
|
|
public final boolean getSkipCreationIntent() {
|
|
return this.skipCreationIntent;
|
|
}
|
|
|
|
public final String getSubtitle() {
|
|
return this.subtitle;
|
|
}
|
|
|
|
public final List<GuildTemplate> getTemplates() {
|
|
return this.templates;
|
|
}
|
|
|
|
public final String getTitle() {
|
|
return this.title;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
String str = this.title;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
String str2 = this.subtitle;
|
|
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
List<GuildTemplate> list = this.templates;
|
|
if (list != null) {
|
|
i = list.hashCode();
|
|
}
|
|
int i2 = (hashCode2 + i) * 31;
|
|
boolean z2 = this.showInvitePrompt;
|
|
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.skipCreationIntent;
|
|
if (!z3) {
|
|
i3 = z3 ? 1 : 0;
|
|
}
|
|
return i7 + i3;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder L = a.L("GuildTemplateArgs(title=");
|
|
L.append(this.title);
|
|
L.append(", subtitle=");
|
|
L.append(this.subtitle);
|
|
L.append(", templates=");
|
|
L.append(this.templates);
|
|
L.append(", showInvitePrompt=");
|
|
L.append(this.showInvitePrompt);
|
|
L.append(", skipCreationIntent=");
|
|
return a.G(L, this.skipCreationIntent, ")");
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
m.checkNotNullParameter(parcel, "parcel");
|
|
parcel.writeString(this.title);
|
|
parcel.writeString(this.subtitle);
|
|
List<GuildTemplate> list = this.templates;
|
|
parcel.writeInt(list.size());
|
|
for (GuildTemplate guildTemplate : list) {
|
|
parcel.writeString(guildTemplate.name());
|
|
}
|
|
parcel.writeInt(this.showInvitePrompt ? 1 : 0);
|
|
parcel.writeInt(this.skipCreationIntent ? 1 : 0);
|
|
}
|
|
}
|