112 lines
4.4 KiB
Java
112 lines
4.4 KiB
Java
package com.discord.widgets.hubs;
|
|
|
|
import b.d.b.a.a;
|
|
import com.discord.api.hubs.EmailVerification;
|
|
import com.discord.api.hubs.EmailVerificationCode;
|
|
import com.discord.stores.utilities.Default;
|
|
import com.discord.stores.utilities.RestCallState;
|
|
import d0.z.d.m;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: WidgetHubAuthenticationlViewModel.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class HubAuthenticationState {
|
|
private final RestCallState<EmailVerificationCode> authenticationAsync;
|
|
private final String email;
|
|
private final RestCallState<EmailVerification> resendEmailAsync;
|
|
|
|
public HubAuthenticationState() {
|
|
this(null, null, null, 7, null);
|
|
}
|
|
|
|
public HubAuthenticationState(String str, RestCallState<EmailVerification> restCallState, RestCallState<EmailVerificationCode> restCallState2) {
|
|
m.checkNotNullParameter(restCallState, "resendEmailAsync");
|
|
m.checkNotNullParameter(restCallState2, "authenticationAsync");
|
|
this.email = str;
|
|
this.resendEmailAsync = restCallState;
|
|
this.authenticationAsync = restCallState2;
|
|
}
|
|
|
|
public /* synthetic */ HubAuthenticationState(String str, RestCallState restCallState, RestCallState restCallState2, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? null : str, (i & 2) != 0 ? Default.INSTANCE : restCallState, (i & 4) != 0 ? Default.INSTANCE : restCallState2);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ HubAuthenticationState copy$default(HubAuthenticationState hubAuthenticationState, String str, RestCallState restCallState, RestCallState restCallState2, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = hubAuthenticationState.email;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
restCallState = hubAuthenticationState.resendEmailAsync;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
restCallState2 = hubAuthenticationState.authenticationAsync;
|
|
}
|
|
return hubAuthenticationState.copy(str, restCallState, restCallState2);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.email;
|
|
}
|
|
|
|
public final RestCallState<EmailVerification> component2() {
|
|
return this.resendEmailAsync;
|
|
}
|
|
|
|
public final RestCallState<EmailVerificationCode> component3() {
|
|
return this.authenticationAsync;
|
|
}
|
|
|
|
public final HubAuthenticationState copy(String str, RestCallState<EmailVerification> restCallState, RestCallState<EmailVerificationCode> restCallState2) {
|
|
m.checkNotNullParameter(restCallState, "resendEmailAsync");
|
|
m.checkNotNullParameter(restCallState2, "authenticationAsync");
|
|
return new HubAuthenticationState(str, restCallState, restCallState2);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof HubAuthenticationState)) {
|
|
return false;
|
|
}
|
|
HubAuthenticationState hubAuthenticationState = (HubAuthenticationState) obj;
|
|
return m.areEqual(this.email, hubAuthenticationState.email) && m.areEqual(this.resendEmailAsync, hubAuthenticationState.resendEmailAsync) && m.areEqual(this.authenticationAsync, hubAuthenticationState.authenticationAsync);
|
|
}
|
|
|
|
public final RestCallState<EmailVerificationCode> getAuthenticationAsync() {
|
|
return this.authenticationAsync;
|
|
}
|
|
|
|
public final String getEmail() {
|
|
return this.email;
|
|
}
|
|
|
|
public final RestCallState<EmailVerification> getResendEmailAsync() {
|
|
return this.resendEmailAsync;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.email;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
RestCallState<EmailVerification> restCallState = this.resendEmailAsync;
|
|
int hashCode2 = (hashCode + (restCallState != null ? restCallState.hashCode() : 0)) * 31;
|
|
RestCallState<EmailVerificationCode> restCallState2 = this.authenticationAsync;
|
|
if (restCallState2 != null) {
|
|
i = restCallState2.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("HubAuthenticationState(email=");
|
|
R.append(this.email);
|
|
R.append(", resendEmailAsync=");
|
|
R.append(this.resendEmailAsync);
|
|
R.append(", authenticationAsync=");
|
|
R.append(this.authenticationAsync);
|
|
R.append(")");
|
|
return R.toString();
|
|
}
|
|
}
|