forked from Juby210/discord-jadx
182 lines
6.6 KiB
Java
182 lines
6.6 KiB
Java
package com.discord.widgets.nux;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import c.d.b.a.a;
|
|
import c0.z.d.m;
|
|
import com.discord.models.domain.ModelAuditLogEntry;
|
|
import com.discord.widgets.guilds.create.CreateGuildTrigger;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: WidgetGuildTemplates.kt */
|
|
public final class GuildCreateArgs implements Parcelable {
|
|
public static final Parcelable.Creator<GuildCreateArgs> CREATOR = new Creator();
|
|
private final boolean closeWithResult;
|
|
private final GuildTemplateArgs guildTemplate;
|
|
private final boolean isNux;
|
|
private final String location;
|
|
private final CreateGuildTrigger trigger;
|
|
|
|
public static class Creator implements Parcelable.Creator<GuildCreateArgs> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final GuildCreateArgs createFromParcel(Parcel parcel) {
|
|
m.checkNotNullParameter(parcel, "in");
|
|
return new GuildCreateArgs(parcel.readInt() != 0, parcel.readString(), (CreateGuildTrigger) Enum.valueOf(CreateGuildTrigger.class, parcel.readString()), GuildTemplateArgs.CREATOR.createFromParcel(parcel), parcel.readInt() != 0);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final GuildCreateArgs[] newArray(int i) {
|
|
return new GuildCreateArgs[i];
|
|
}
|
|
}
|
|
|
|
public GuildCreateArgs(boolean z2, String str, CreateGuildTrigger createGuildTrigger, GuildTemplateArgs guildTemplateArgs, boolean z3) {
|
|
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_LOCATION);
|
|
m.checkNotNullParameter(createGuildTrigger, "trigger");
|
|
m.checkNotNullParameter(guildTemplateArgs, "guildTemplate");
|
|
this.isNux = z2;
|
|
this.location = str;
|
|
this.trigger = createGuildTrigger;
|
|
this.guildTemplate = guildTemplateArgs;
|
|
this.closeWithResult = z3;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ GuildCreateArgs(boolean z2, String str, CreateGuildTrigger createGuildTrigger, GuildTemplateArgs guildTemplateArgs, boolean z3, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(z2, str, createGuildTrigger, guildTemplateArgs, (i & 16) != 0 ? false : z3);
|
|
}
|
|
|
|
public static /* synthetic */ GuildCreateArgs copy$default(GuildCreateArgs guildCreateArgs, boolean z2, String str, CreateGuildTrigger createGuildTrigger, GuildTemplateArgs guildTemplateArgs, boolean z3, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
z2 = guildCreateArgs.isNux;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
str = guildCreateArgs.location;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
createGuildTrigger = guildCreateArgs.trigger;
|
|
}
|
|
if ((i & 8) != 0) {
|
|
guildTemplateArgs = guildCreateArgs.guildTemplate;
|
|
}
|
|
if ((i & 16) != 0) {
|
|
z3 = guildCreateArgs.closeWithResult;
|
|
}
|
|
return guildCreateArgs.copy(z2, str, createGuildTrigger, guildTemplateArgs, z3);
|
|
}
|
|
|
|
public final boolean component1() {
|
|
return this.isNux;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.location;
|
|
}
|
|
|
|
public final CreateGuildTrigger component3() {
|
|
return this.trigger;
|
|
}
|
|
|
|
public final GuildTemplateArgs component4() {
|
|
return this.guildTemplate;
|
|
}
|
|
|
|
public final boolean component5() {
|
|
return this.closeWithResult;
|
|
}
|
|
|
|
public final GuildCreateArgs copy(boolean z2, String str, CreateGuildTrigger createGuildTrigger, GuildTemplateArgs guildTemplateArgs, boolean z3) {
|
|
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_LOCATION);
|
|
m.checkNotNullParameter(createGuildTrigger, "trigger");
|
|
m.checkNotNullParameter(guildTemplateArgs, "guildTemplate");
|
|
return new GuildCreateArgs(z2, str, createGuildTrigger, guildTemplateArgs, 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 GuildCreateArgs)) {
|
|
return false;
|
|
}
|
|
GuildCreateArgs guildCreateArgs = (GuildCreateArgs) obj;
|
|
return this.isNux == guildCreateArgs.isNux && m.areEqual(this.location, guildCreateArgs.location) && m.areEqual(this.trigger, guildCreateArgs.trigger) && m.areEqual(this.guildTemplate, guildCreateArgs.guildTemplate) && this.closeWithResult == guildCreateArgs.closeWithResult;
|
|
}
|
|
|
|
public final boolean getCloseWithResult() {
|
|
return this.closeWithResult;
|
|
}
|
|
|
|
public final GuildTemplateArgs getGuildTemplate() {
|
|
return this.guildTemplate;
|
|
}
|
|
|
|
public final String getLocation() {
|
|
return this.location;
|
|
}
|
|
|
|
public final CreateGuildTrigger getTrigger() {
|
|
return this.trigger;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
boolean z2 = this.isNux;
|
|
int i = 1;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i2 = z2 ? 1 : 0;
|
|
int i3 = z2 ? 1 : 0;
|
|
int i4 = z2 ? 1 : 0;
|
|
int i5 = i2 * 31;
|
|
String str = this.location;
|
|
int i6 = 0;
|
|
int hashCode = (i5 + (str != null ? str.hashCode() : 0)) * 31;
|
|
CreateGuildTrigger createGuildTrigger = this.trigger;
|
|
int hashCode2 = (hashCode + (createGuildTrigger != null ? createGuildTrigger.hashCode() : 0)) * 31;
|
|
GuildTemplateArgs guildTemplateArgs = this.guildTemplate;
|
|
if (guildTemplateArgs != null) {
|
|
i6 = guildTemplateArgs.hashCode();
|
|
}
|
|
int i7 = (hashCode2 + i6) * 31;
|
|
boolean z3 = this.closeWithResult;
|
|
if (!z3) {
|
|
i = z3 ? 1 : 0;
|
|
}
|
|
return i7 + i;
|
|
}
|
|
|
|
public final boolean isNux() {
|
|
return this.isNux;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder O = a.O("GuildCreateArgs(isNux=");
|
|
O.append(this.isNux);
|
|
O.append(", location=");
|
|
O.append(this.location);
|
|
O.append(", trigger=");
|
|
O.append(this.trigger);
|
|
O.append(", guildTemplate=");
|
|
O.append(this.guildTemplate);
|
|
O.append(", closeWithResult=");
|
|
return a.K(O, this.closeWithResult, ")");
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
m.checkNotNullParameter(parcel, "parcel");
|
|
parcel.writeInt(this.isNux ? 1 : 0);
|
|
parcel.writeString(this.location);
|
|
parcel.writeString(this.trigger.name());
|
|
this.guildTemplate.writeToParcel(parcel, 0);
|
|
parcel.writeInt(this.closeWithResult ? 1 : 0);
|
|
}
|
|
}
|