111 lines
3.6 KiB
Java
111 lines
3.6 KiB
Java
package com.discord.widgets.hubs;
|
|
|
|
import b.d.b.a.a;
|
|
import com.discord.models.guild.Guild;
|
|
import com.discord.stores.utilities.Default;
|
|
import com.discord.stores.utilities.RestCallState;
|
|
import d0.z.d.m;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: WidgetHubAddNameViewModel.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class AddNameState {
|
|
private final RestCallState<Void> changeNicknameAsync;
|
|
private final Guild guild;
|
|
private final String nickname;
|
|
|
|
public AddNameState() {
|
|
this(null, null, null, 7, null);
|
|
}
|
|
|
|
public AddNameState(String str, Guild guild, RestCallState<Void> restCallState) {
|
|
m.checkNotNullParameter(str, "nickname");
|
|
m.checkNotNullParameter(restCallState, "changeNicknameAsync");
|
|
this.nickname = str;
|
|
this.guild = guild;
|
|
this.changeNicknameAsync = restCallState;
|
|
}
|
|
|
|
public /* synthetic */ AddNameState(String str, Guild guild, RestCallState restCallState, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? "" : str, (i & 2) != 0 ? null : guild, (i & 4) != 0 ? Default.INSTANCE : restCallState);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ AddNameState copy$default(AddNameState addNameState, String str, Guild guild, RestCallState restCallState, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = addNameState.nickname;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
guild = addNameState.guild;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
restCallState = addNameState.changeNicknameAsync;
|
|
}
|
|
return addNameState.copy(str, guild, restCallState);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.nickname;
|
|
}
|
|
|
|
public final Guild component2() {
|
|
return this.guild;
|
|
}
|
|
|
|
public final RestCallState<Void> component3() {
|
|
return this.changeNicknameAsync;
|
|
}
|
|
|
|
public final AddNameState copy(String str, Guild guild, RestCallState<Void> restCallState) {
|
|
m.checkNotNullParameter(str, "nickname");
|
|
m.checkNotNullParameter(restCallState, "changeNicknameAsync");
|
|
return new AddNameState(str, guild, restCallState);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof AddNameState)) {
|
|
return false;
|
|
}
|
|
AddNameState addNameState = (AddNameState) obj;
|
|
return m.areEqual(this.nickname, addNameState.nickname) && m.areEqual(this.guild, addNameState.guild) && m.areEqual(this.changeNicknameAsync, addNameState.changeNicknameAsync);
|
|
}
|
|
|
|
public final RestCallState<Void> getChangeNicknameAsync() {
|
|
return this.changeNicknameAsync;
|
|
}
|
|
|
|
public final Guild getGuild() {
|
|
return this.guild;
|
|
}
|
|
|
|
public final String getNickname() {
|
|
return this.nickname;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.nickname;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
Guild guild = this.guild;
|
|
int hashCode2 = (hashCode + (guild != null ? guild.hashCode() : 0)) * 31;
|
|
RestCallState<Void> restCallState = this.changeNicknameAsync;
|
|
if (restCallState != null) {
|
|
i = restCallState.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("AddNameState(nickname=");
|
|
R.append(this.nickname);
|
|
R.append(", guild=");
|
|
R.append(this.guild);
|
|
R.append(", changeNicknameAsync=");
|
|
R.append(this.changeNicknameAsync);
|
|
R.append(")");
|
|
return R.toString();
|
|
}
|
|
}
|