discord-jadx/app/src/main/java/com/discord/widgets/chat/input/applicationcommands/SelectedApplicationChat.java

73 lines
2.1 KiB
Java

package com.discord.widgets.chat.input.applicationcommands;
import a0.a.a.b;
import c.d.b.a.a;
import com.discord.models.user.User;
import d0.z.d.m;
/* compiled from: WidgetChatInputApplicationCommands.kt */
public final class SelectedApplicationChat {
private final User botUser;
private final long guilldId;
public SelectedApplicationChat(long j, User user) {
this.guilldId = j;
this.botUser = user;
}
public static /* synthetic */ SelectedApplicationChat copy$default(SelectedApplicationChat selectedApplicationChat, long j, User user, int i, Object obj) {
if ((i & 1) != 0) {
j = selectedApplicationChat.guilldId;
}
if ((i & 2) != 0) {
user = selectedApplicationChat.botUser;
}
return selectedApplicationChat.copy(j, user);
}
public final long component1() {
return this.guilldId;
}
public final User component2() {
return this.botUser;
}
public final SelectedApplicationChat copy(long j, User user) {
return new SelectedApplicationChat(j, user);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof SelectedApplicationChat)) {
return false;
}
SelectedApplicationChat selectedApplicationChat = (SelectedApplicationChat) obj;
return this.guilldId == selectedApplicationChat.guilldId && m.areEqual(this.botUser, selectedApplicationChat.botUser);
}
public final User getBotUser() {
return this.botUser;
}
public final long getGuilldId() {
return this.guilldId;
}
public int hashCode() {
int a = b.a(this.guilldId) * 31;
User user = this.botUser;
return a + (user != null ? user.hashCode() : 0);
}
public String toString() {
StringBuilder L = a.L("SelectedApplicationChat(guilldId=");
L.append(this.guilldId);
L.append(", botUser=");
L.append(this.botUser);
L.append(")");
return L.toString();
}
}