129 lines
5.8 KiB
Java
129 lines
5.8 KiB
Java
package com.discord.widgets.chat.input.models;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.widgets.chat.input.UserAndSelectedGuildRoles;
|
|
import com.discord.widgets.chat.input.autocomplete.Autocompletable;
|
|
import com.discord.widgets.chat.input.autocomplete.LeadingIdentifier;
|
|
import d0.z.d.m;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
/* compiled from: AutocompleteInputModel.kt */
|
|
public final class AutocompleteInputModel {
|
|
private final AutocompleteApplicationCommands applicationCommands;
|
|
private final Map<LeadingIdentifier, Set<Autocompletable>> autocompletables;
|
|
private final String input;
|
|
|
|
/* renamed from: me reason: collision with root package name */
|
|
private final UserAndSelectedGuildRoles f2137me;
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: java.util.Map<com.discord.widgets.chat.input.autocomplete.LeadingIdentifier, ? extends java.util.Set<? extends com.discord.widgets.chat.input.autocomplete.Autocompletable>> */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public AutocompleteInputModel(String str, UserAndSelectedGuildRoles userAndSelectedGuildRoles, Map<LeadingIdentifier, ? extends Set<? extends Autocompletable>> map, AutocompleteApplicationCommands autocompleteApplicationCommands) {
|
|
m.checkNotNullParameter(str, "input");
|
|
m.checkNotNullParameter(userAndSelectedGuildRoles, "me");
|
|
m.checkNotNullParameter(map, "autocompletables");
|
|
m.checkNotNullParameter(autocompleteApplicationCommands, "applicationCommands");
|
|
this.input = str;
|
|
this.f2137me = userAndSelectedGuildRoles;
|
|
this.autocompletables = map;
|
|
this.applicationCommands = autocompleteApplicationCommands;
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.chat.input.models.AutocompleteInputModel */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ AutocompleteInputModel copy$default(AutocompleteInputModel autocompleteInputModel, String str, UserAndSelectedGuildRoles userAndSelectedGuildRoles, Map map, AutocompleteApplicationCommands autocompleteApplicationCommands, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = autocompleteInputModel.input;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
userAndSelectedGuildRoles = autocompleteInputModel.f2137me;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
map = autocompleteInputModel.autocompletables;
|
|
}
|
|
if ((i & 8) != 0) {
|
|
autocompleteApplicationCommands = autocompleteInputModel.applicationCommands;
|
|
}
|
|
return autocompleteInputModel.copy(str, userAndSelectedGuildRoles, map, autocompleteApplicationCommands);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.input;
|
|
}
|
|
|
|
public final UserAndSelectedGuildRoles component2() {
|
|
return this.f2137me;
|
|
}
|
|
|
|
public final Map<LeadingIdentifier, Set<Autocompletable>> component3() {
|
|
return this.autocompletables;
|
|
}
|
|
|
|
public final AutocompleteApplicationCommands component4() {
|
|
return this.applicationCommands;
|
|
}
|
|
|
|
public final AutocompleteInputModel copy(String str, UserAndSelectedGuildRoles userAndSelectedGuildRoles, Map<LeadingIdentifier, ? extends Set<? extends Autocompletable>> map, AutocompleteApplicationCommands autocompleteApplicationCommands) {
|
|
m.checkNotNullParameter(str, "input");
|
|
m.checkNotNullParameter(userAndSelectedGuildRoles, "me");
|
|
m.checkNotNullParameter(map, "autocompletables");
|
|
m.checkNotNullParameter(autocompleteApplicationCommands, "applicationCommands");
|
|
return new AutocompleteInputModel(str, userAndSelectedGuildRoles, map, autocompleteApplicationCommands);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof AutocompleteInputModel)) {
|
|
return false;
|
|
}
|
|
AutocompleteInputModel autocompleteInputModel = (AutocompleteInputModel) obj;
|
|
return m.areEqual(this.input, autocompleteInputModel.input) && m.areEqual(this.f2137me, autocompleteInputModel.f2137me) && m.areEqual(this.autocompletables, autocompleteInputModel.autocompletables) && m.areEqual(this.applicationCommands, autocompleteInputModel.applicationCommands);
|
|
}
|
|
|
|
public final AutocompleteApplicationCommands getApplicationCommands() {
|
|
return this.applicationCommands;
|
|
}
|
|
|
|
public final Map<LeadingIdentifier, Set<Autocompletable>> getAutocompletables() {
|
|
return this.autocompletables;
|
|
}
|
|
|
|
public final String getInput() {
|
|
return this.input;
|
|
}
|
|
|
|
public final UserAndSelectedGuildRoles getMe() {
|
|
return this.f2137me;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.input;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
UserAndSelectedGuildRoles userAndSelectedGuildRoles = this.f2137me;
|
|
int hashCode2 = (hashCode + (userAndSelectedGuildRoles != null ? userAndSelectedGuildRoles.hashCode() : 0)) * 31;
|
|
Map<LeadingIdentifier, Set<Autocompletable>> map = this.autocompletables;
|
|
int hashCode3 = (hashCode2 + (map != null ? map.hashCode() : 0)) * 31;
|
|
AutocompleteApplicationCommands autocompleteApplicationCommands = this.applicationCommands;
|
|
if (autocompleteApplicationCommands != null) {
|
|
i = autocompleteApplicationCommands.hashCode();
|
|
}
|
|
return hashCode3 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("AutocompleteInputModel(input=");
|
|
L.append(this.input);
|
|
L.append(", me=");
|
|
L.append(this.f2137me);
|
|
L.append(", autocompletables=");
|
|
L.append(this.autocompletables);
|
|
L.append(", applicationCommands=");
|
|
L.append(this.applicationCommands);
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|