164 lines
8.3 KiB
Java
164 lines
8.3 KiB
Java
package com.discord.widgets.chat.input.models;
|
|
|
|
import c.d.b.a.a;
|
|
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;
|
|
import kotlin.ranges.IntRange;
|
|
/* compiled from: VerifiedCommandMentionInputModel.kt */
|
|
public final class VerifiedCommandMentionInputModel {
|
|
private final Map<LeadingIdentifier, Set<Autocompletable>> autocompletables;
|
|
private final AutocompleteApplicationCommands commands;
|
|
private final String input;
|
|
private final AutocompleteInputCommandContext inputCommandContext;
|
|
private final InputCommandOptions inputCommandOptions;
|
|
private final Map<IntRange, Autocompletable> inputMentionsMap;
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r3v0, 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 DEBUG: Multi-variable search result rejected for r7v0, resolved type: java.util.Map<kotlin.ranges.IntRange, ? extends com.discord.widgets.chat.input.autocomplete.Autocompletable> */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public VerifiedCommandMentionInputModel(String str, Map<LeadingIdentifier, ? extends Set<? extends Autocompletable>> map, AutocompleteApplicationCommands autocompleteApplicationCommands, AutocompleteInputCommandContext autocompleteInputCommandContext, InputCommandOptions inputCommandOptions, Map<IntRange, ? extends Autocompletable> map2) {
|
|
m.checkNotNullParameter(str, "input");
|
|
m.checkNotNullParameter(map, "autocompletables");
|
|
m.checkNotNullParameter(autocompleteApplicationCommands, "commands");
|
|
m.checkNotNullParameter(autocompleteInputCommandContext, "inputCommandContext");
|
|
m.checkNotNullParameter(inputCommandOptions, "inputCommandOptions");
|
|
m.checkNotNullParameter(map2, "inputMentionsMap");
|
|
this.input = str;
|
|
this.autocompletables = map;
|
|
this.commands = autocompleteApplicationCommands;
|
|
this.inputCommandContext = autocompleteInputCommandContext;
|
|
this.inputCommandOptions = inputCommandOptions;
|
|
this.inputMentionsMap = map2;
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: com.discord.widgets.chat.input.models.VerifiedCommandMentionInputModel */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ VerifiedCommandMentionInputModel copy$default(VerifiedCommandMentionInputModel verifiedCommandMentionInputModel, String str, Map map, AutocompleteApplicationCommands autocompleteApplicationCommands, AutocompleteInputCommandContext autocompleteInputCommandContext, InputCommandOptions inputCommandOptions, Map map2, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = verifiedCommandMentionInputModel.input;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
map = verifiedCommandMentionInputModel.autocompletables;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
autocompleteApplicationCommands = verifiedCommandMentionInputModel.commands;
|
|
}
|
|
if ((i & 8) != 0) {
|
|
autocompleteInputCommandContext = verifiedCommandMentionInputModel.inputCommandContext;
|
|
}
|
|
if ((i & 16) != 0) {
|
|
inputCommandOptions = verifiedCommandMentionInputModel.inputCommandOptions;
|
|
}
|
|
if ((i & 32) != 0) {
|
|
map2 = verifiedCommandMentionInputModel.inputMentionsMap;
|
|
}
|
|
return verifiedCommandMentionInputModel.copy(str, map, autocompleteApplicationCommands, autocompleteInputCommandContext, inputCommandOptions, map2);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.input;
|
|
}
|
|
|
|
public final Map<LeadingIdentifier, Set<Autocompletable>> component2() {
|
|
return this.autocompletables;
|
|
}
|
|
|
|
public final AutocompleteApplicationCommands component3() {
|
|
return this.commands;
|
|
}
|
|
|
|
public final AutocompleteInputCommandContext component4() {
|
|
return this.inputCommandContext;
|
|
}
|
|
|
|
public final InputCommandOptions component5() {
|
|
return this.inputCommandOptions;
|
|
}
|
|
|
|
public final Map<IntRange, Autocompletable> component6() {
|
|
return this.inputMentionsMap;
|
|
}
|
|
|
|
public final VerifiedCommandMentionInputModel copy(String str, Map<LeadingIdentifier, ? extends Set<? extends Autocompletable>> map, AutocompleteApplicationCommands autocompleteApplicationCommands, AutocompleteInputCommandContext autocompleteInputCommandContext, InputCommandOptions inputCommandOptions, Map<IntRange, ? extends Autocompletable> map2) {
|
|
m.checkNotNullParameter(str, "input");
|
|
m.checkNotNullParameter(map, "autocompletables");
|
|
m.checkNotNullParameter(autocompleteApplicationCommands, "commands");
|
|
m.checkNotNullParameter(autocompleteInputCommandContext, "inputCommandContext");
|
|
m.checkNotNullParameter(inputCommandOptions, "inputCommandOptions");
|
|
m.checkNotNullParameter(map2, "inputMentionsMap");
|
|
return new VerifiedCommandMentionInputModel(str, map, autocompleteApplicationCommands, autocompleteInputCommandContext, inputCommandOptions, map2);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof VerifiedCommandMentionInputModel)) {
|
|
return false;
|
|
}
|
|
VerifiedCommandMentionInputModel verifiedCommandMentionInputModel = (VerifiedCommandMentionInputModel) obj;
|
|
return m.areEqual(this.input, verifiedCommandMentionInputModel.input) && m.areEqual(this.autocompletables, verifiedCommandMentionInputModel.autocompletables) && m.areEqual(this.commands, verifiedCommandMentionInputModel.commands) && m.areEqual(this.inputCommandContext, verifiedCommandMentionInputModel.inputCommandContext) && m.areEqual(this.inputCommandOptions, verifiedCommandMentionInputModel.inputCommandOptions) && m.areEqual(this.inputMentionsMap, verifiedCommandMentionInputModel.inputMentionsMap);
|
|
}
|
|
|
|
public final Map<LeadingIdentifier, Set<Autocompletable>> getAutocompletables() {
|
|
return this.autocompletables;
|
|
}
|
|
|
|
public final AutocompleteApplicationCommands getCommands() {
|
|
return this.commands;
|
|
}
|
|
|
|
public final String getInput() {
|
|
return this.input;
|
|
}
|
|
|
|
public final AutocompleteInputCommandContext getInputCommandContext() {
|
|
return this.inputCommandContext;
|
|
}
|
|
|
|
public final InputCommandOptions getInputCommandOptions() {
|
|
return this.inputCommandOptions;
|
|
}
|
|
|
|
public final Map<IntRange, Autocompletable> getInputMentionsMap() {
|
|
return this.inputMentionsMap;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.input;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
Map<LeadingIdentifier, Set<Autocompletable>> map = this.autocompletables;
|
|
int hashCode2 = (hashCode + (map != null ? map.hashCode() : 0)) * 31;
|
|
AutocompleteApplicationCommands autocompleteApplicationCommands = this.commands;
|
|
int hashCode3 = (hashCode2 + (autocompleteApplicationCommands != null ? autocompleteApplicationCommands.hashCode() : 0)) * 31;
|
|
AutocompleteInputCommandContext autocompleteInputCommandContext = this.inputCommandContext;
|
|
int hashCode4 = (hashCode3 + (autocompleteInputCommandContext != null ? autocompleteInputCommandContext.hashCode() : 0)) * 31;
|
|
InputCommandOptions inputCommandOptions = this.inputCommandOptions;
|
|
int hashCode5 = (hashCode4 + (inputCommandOptions != null ? inputCommandOptions.hashCode() : 0)) * 31;
|
|
Map<IntRange, Autocompletable> map2 = this.inputMentionsMap;
|
|
if (map2 != null) {
|
|
i = map2.hashCode();
|
|
}
|
|
return hashCode5 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("VerifiedCommandMentionInputModel(input=");
|
|
L.append(this.input);
|
|
L.append(", autocompletables=");
|
|
L.append(this.autocompletables);
|
|
L.append(", commands=");
|
|
L.append(this.commands);
|
|
L.append(", inputCommandContext=");
|
|
L.append(this.inputCommandContext);
|
|
L.append(", inputCommandOptions=");
|
|
L.append(this.inputCommandOptions);
|
|
L.append(", inputMentionsMap=");
|
|
return a.F(L, this.inputMentionsMap, ")");
|
|
}
|
|
}
|