134 lines
4.9 KiB
Java
134 lines
4.9 KiB
Java
package com.discord.widgets.hubs;
|
|
|
|
import b.d.b.a.a;
|
|
import com.discord.api.hubs.EmailVerification;
|
|
import com.discord.stores.utilities.Default;
|
|
import com.discord.stores.utilities.RestCallState;
|
|
import d0.g;
|
|
import d0.z.d.m;
|
|
import kotlin.Lazy;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: WidgetHubEmailViewModel.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class HubEmailState {
|
|
private final String email;
|
|
private final Lazy hasMultipleDomains$delegate;
|
|
private final Long selectedGuildId;
|
|
private final RestCallState<EmailVerification> verifyEmailAsync;
|
|
private final HubWaitlistResult waitlistResult;
|
|
|
|
public HubEmailState() {
|
|
this(null, null, null, null, 15, null);
|
|
}
|
|
|
|
public HubEmailState(String str, Long l, HubWaitlistResult hubWaitlistResult, RestCallState<EmailVerification> restCallState) {
|
|
m.checkNotNullParameter(restCallState, "verifyEmailAsync");
|
|
this.email = str;
|
|
this.selectedGuildId = l;
|
|
this.waitlistResult = hubWaitlistResult;
|
|
this.verifyEmailAsync = restCallState;
|
|
this.hasMultipleDomains$delegate = g.lazy(new HubEmailState$hasMultipleDomains$2(this));
|
|
}
|
|
|
|
public /* synthetic */ HubEmailState(String str, Long l, HubWaitlistResult hubWaitlistResult, RestCallState restCallState, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? null : str, (i & 2) != 0 ? null : l, (i & 4) != 0 ? null : hubWaitlistResult, (i & 8) != 0 ? Default.INSTANCE : restCallState);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ HubEmailState copy$default(HubEmailState hubEmailState, String str, Long l, HubWaitlistResult hubWaitlistResult, RestCallState restCallState, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = hubEmailState.email;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
l = hubEmailState.selectedGuildId;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
hubWaitlistResult = hubEmailState.waitlistResult;
|
|
}
|
|
if ((i & 8) != 0) {
|
|
restCallState = hubEmailState.verifyEmailAsync;
|
|
}
|
|
return hubEmailState.copy(str, l, hubWaitlistResult, restCallState);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.email;
|
|
}
|
|
|
|
public final Long component2() {
|
|
return this.selectedGuildId;
|
|
}
|
|
|
|
public final HubWaitlistResult component3() {
|
|
return this.waitlistResult;
|
|
}
|
|
|
|
public final RestCallState<EmailVerification> component4() {
|
|
return this.verifyEmailAsync;
|
|
}
|
|
|
|
public final HubEmailState copy(String str, Long l, HubWaitlistResult hubWaitlistResult, RestCallState<EmailVerification> restCallState) {
|
|
m.checkNotNullParameter(restCallState, "verifyEmailAsync");
|
|
return new HubEmailState(str, l, hubWaitlistResult, restCallState);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof HubEmailState)) {
|
|
return false;
|
|
}
|
|
HubEmailState hubEmailState = (HubEmailState) obj;
|
|
return m.areEqual(this.email, hubEmailState.email) && m.areEqual(this.selectedGuildId, hubEmailState.selectedGuildId) && m.areEqual(this.waitlistResult, hubEmailState.waitlistResult) && m.areEqual(this.verifyEmailAsync, hubEmailState.verifyEmailAsync);
|
|
}
|
|
|
|
public final String getEmail() {
|
|
return this.email;
|
|
}
|
|
|
|
public final boolean getHasMultipleDomains() {
|
|
return ((Boolean) this.hasMultipleDomains$delegate.getValue()).booleanValue();
|
|
}
|
|
|
|
public final Long getSelectedGuildId() {
|
|
return this.selectedGuildId;
|
|
}
|
|
|
|
public final RestCallState<EmailVerification> getVerifyEmailAsync() {
|
|
return this.verifyEmailAsync;
|
|
}
|
|
|
|
public final HubWaitlistResult getWaitlistResult() {
|
|
return this.waitlistResult;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.email;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
Long l = this.selectedGuildId;
|
|
int hashCode2 = (hashCode + (l != null ? l.hashCode() : 0)) * 31;
|
|
HubWaitlistResult hubWaitlistResult = this.waitlistResult;
|
|
int hashCode3 = (hashCode2 + (hubWaitlistResult != null ? hubWaitlistResult.hashCode() : 0)) * 31;
|
|
RestCallState<EmailVerification> restCallState = this.verifyEmailAsync;
|
|
if (restCallState != null) {
|
|
i = restCallState.hashCode();
|
|
}
|
|
return hashCode3 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("HubEmailState(email=");
|
|
R.append(this.email);
|
|
R.append(", selectedGuildId=");
|
|
R.append(this.selectedGuildId);
|
|
R.append(", waitlistResult=");
|
|
R.append(this.waitlistResult);
|
|
R.append(", verifyEmailAsync=");
|
|
R.append(this.verifyEmailAsync);
|
|
R.append(")");
|
|
return R.toString();
|
|
}
|
|
}
|