discord-jadx/app/src/main/java/com/discord/widgets/hubs/HubAuthenticationArgs.java

124 lines
3.9 KiB
Java

package com.discord.widgets.hubs;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.core.app.NotificationCompat;
import b.d.b.a.a;
import d0.z.d.m;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: WidgetHubAuthenticationlViewModel.kt */
/* loaded from: classes2.dex */
public final class HubAuthenticationArgs implements Parcelable {
public static final Parcelable.Creator<HubAuthenticationArgs> CREATOR = new Creator();
private final String email;
private final Long guildId;
/* loaded from: classes2.dex */
public static class Creator implements Parcelable.Creator<HubAuthenticationArgs> {
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public final HubAuthenticationArgs createFromParcel(Parcel parcel) {
m.checkNotNullParameter(parcel, "in");
return new HubAuthenticationArgs(parcel.readString(), parcel.readInt() != 0 ? Long.valueOf(parcel.readLong()) : null);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public final HubAuthenticationArgs[] newArray(int i) {
return new HubAuthenticationArgs[i];
}
}
public HubAuthenticationArgs() {
this(null, null, 3, null);
}
public HubAuthenticationArgs(String str, Long l) {
m.checkNotNullParameter(str, NotificationCompat.CATEGORY_EMAIL);
this.email = str;
this.guildId = l;
}
public /* synthetic */ HubAuthenticationArgs(String str, Long l, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? "" : str, (i & 2) != 0 ? null : l);
}
public static /* synthetic */ HubAuthenticationArgs copy$default(HubAuthenticationArgs hubAuthenticationArgs, String str, Long l, int i, Object obj) {
if ((i & 1) != 0) {
str = hubAuthenticationArgs.email;
}
if ((i & 2) != 0) {
l = hubAuthenticationArgs.guildId;
}
return hubAuthenticationArgs.copy(str, l);
}
public final String component1() {
return this.email;
}
public final Long component2() {
return this.guildId;
}
public final HubAuthenticationArgs copy(String str, Long l) {
m.checkNotNullParameter(str, NotificationCompat.CATEGORY_EMAIL);
return new HubAuthenticationArgs(str, l);
}
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof HubAuthenticationArgs)) {
return false;
}
HubAuthenticationArgs hubAuthenticationArgs = (HubAuthenticationArgs) obj;
return m.areEqual(this.email, hubAuthenticationArgs.email) && m.areEqual(this.guildId, hubAuthenticationArgs.guildId);
}
public final String getEmail() {
return this.email;
}
public final Long getGuildId() {
return this.guildId;
}
public int hashCode() {
String str = this.email;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
Long l = this.guildId;
if (l != null) {
i = l.hashCode();
}
return hashCode + i;
}
public String toString() {
StringBuilder R = a.R("HubAuthenticationArgs(email=");
R.append(this.email);
R.append(", guildId=");
return a.F(R, this.guildId, ")");
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
m.checkNotNullParameter(parcel, "parcel");
parcel.writeString(this.email);
Long l = this.guildId;
if (l != null) {
parcel.writeInt(1);
parcel.writeLong(l.longValue());
return;
}
parcel.writeInt(0);
}
}