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

87 lines
3.0 KiB
Java

package com.discord.widgets.chat.input;
import a0.a.a.b;
import c.d.b.a.a;
import com.discord.stores.StoreStream;
import d0.t.n;
import d0.z.d.m;
import java.util.List;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: WidgetChatInputAutocomplete.kt */
public final class UserAndSelectedGuildRoles {
private final long userId;
private final List<Long> userSelectedGuildRoles;
public UserAndSelectedGuildRoles() {
this(0, null, 3, null);
}
public UserAndSelectedGuildRoles(long j, List<Long> list) {
m.checkNotNullParameter(list, "userSelectedGuildRoles");
this.userId = j;
this.userSelectedGuildRoles = list;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ UserAndSelectedGuildRoles(long j, List list, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? StoreStream.Companion.getUsers().getMe().getId() : j, (i & 2) != 0 ? n.emptyList() : list);
}
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.chat.input.UserAndSelectedGuildRoles */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ UserAndSelectedGuildRoles copy$default(UserAndSelectedGuildRoles userAndSelectedGuildRoles, long j, List list, int i, Object obj) {
if ((i & 1) != 0) {
j = userAndSelectedGuildRoles.userId;
}
if ((i & 2) != 0) {
list = userAndSelectedGuildRoles.userSelectedGuildRoles;
}
return userAndSelectedGuildRoles.copy(j, list);
}
public final long component1() {
return this.userId;
}
public final List<Long> component2() {
return this.userSelectedGuildRoles;
}
public final UserAndSelectedGuildRoles copy(long j, List<Long> list) {
m.checkNotNullParameter(list, "userSelectedGuildRoles");
return new UserAndSelectedGuildRoles(j, list);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof UserAndSelectedGuildRoles)) {
return false;
}
UserAndSelectedGuildRoles userAndSelectedGuildRoles = (UserAndSelectedGuildRoles) obj;
return this.userId == userAndSelectedGuildRoles.userId && m.areEqual(this.userSelectedGuildRoles, userAndSelectedGuildRoles.userSelectedGuildRoles);
}
public final long getUserId() {
return this.userId;
}
public final List<Long> getUserSelectedGuildRoles() {
return this.userSelectedGuildRoles;
}
public int hashCode() {
int a = b.a(this.userId) * 31;
List<Long> list = this.userSelectedGuildRoles;
return a + (list != null ? list.hashCode() : 0);
}
public String toString() {
StringBuilder L = a.L("UserAndSelectedGuildRoles(userId=");
L.append(this.userId);
L.append(", userSelectedGuildRoles=");
return a.E(L, this.userSelectedGuildRoles, ")");
}
}