116 lines
5.3 KiB
Java
116 lines
5.3 KiB
Java
package com.discord.widgets.chat.input.models;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.models.commands.Application;
|
|
import com.discord.models.commands.ApplicationCommand;
|
|
import com.discord.widgets.chat.input.WidgetChatInputDiscoveryCommandsModel;
|
|
import d0.t.n;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: AutocompleteApplicationCommands.kt */
|
|
public final class AutocompleteApplicationCommands {
|
|
private final List<Application> applications;
|
|
private final WidgetChatInputDiscoveryCommandsModel discoveryCommands;
|
|
private final List<ApplicationCommand> queryCommands;
|
|
|
|
public AutocompleteApplicationCommands() {
|
|
this(null, null, null, 7, null);
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: java.util.List<? extends com.discord.models.commands.ApplicationCommand> */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public AutocompleteApplicationCommands(List<Application> list, List<? extends ApplicationCommand> list2, WidgetChatInputDiscoveryCommandsModel widgetChatInputDiscoveryCommandsModel) {
|
|
m.checkNotNullParameter(list, "applications");
|
|
m.checkNotNullParameter(list2, "queryCommands");
|
|
this.applications = list;
|
|
this.queryCommands = list2;
|
|
this.discoveryCommands = widgetChatInputDiscoveryCommandsModel;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ AutocompleteApplicationCommands(List list, List list2, WidgetChatInputDiscoveryCommandsModel widgetChatInputDiscoveryCommandsModel, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? n.emptyList() : list, (i & 2) != 0 ? n.emptyList() : list2, (i & 4) != 0 ? null : widgetChatInputDiscoveryCommandsModel);
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.chat.input.models.AutocompleteApplicationCommands */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ AutocompleteApplicationCommands copy$default(AutocompleteApplicationCommands autocompleteApplicationCommands, List list, List list2, WidgetChatInputDiscoveryCommandsModel widgetChatInputDiscoveryCommandsModel, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
list = autocompleteApplicationCommands.applications;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
list2 = autocompleteApplicationCommands.queryCommands;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
widgetChatInputDiscoveryCommandsModel = autocompleteApplicationCommands.discoveryCommands;
|
|
}
|
|
return autocompleteApplicationCommands.copy(list, list2, widgetChatInputDiscoveryCommandsModel);
|
|
}
|
|
|
|
public final List<Application> component1() {
|
|
return this.applications;
|
|
}
|
|
|
|
public final List<ApplicationCommand> component2() {
|
|
return this.queryCommands;
|
|
}
|
|
|
|
public final WidgetChatInputDiscoveryCommandsModel component3() {
|
|
return this.discoveryCommands;
|
|
}
|
|
|
|
public final AutocompleteApplicationCommands copy(List<Application> list, List<? extends ApplicationCommand> list2, WidgetChatInputDiscoveryCommandsModel widgetChatInputDiscoveryCommandsModel) {
|
|
m.checkNotNullParameter(list, "applications");
|
|
m.checkNotNullParameter(list2, "queryCommands");
|
|
return new AutocompleteApplicationCommands(list, list2, widgetChatInputDiscoveryCommandsModel);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof AutocompleteApplicationCommands)) {
|
|
return false;
|
|
}
|
|
AutocompleteApplicationCommands autocompleteApplicationCommands = (AutocompleteApplicationCommands) obj;
|
|
return m.areEqual(this.applications, autocompleteApplicationCommands.applications) && m.areEqual(this.queryCommands, autocompleteApplicationCommands.queryCommands) && m.areEqual(this.discoveryCommands, autocompleteApplicationCommands.discoveryCommands);
|
|
}
|
|
|
|
public final List<Application> getApplications() {
|
|
return this.applications;
|
|
}
|
|
|
|
public final WidgetChatInputDiscoveryCommandsModel getDiscoveryCommands() {
|
|
return this.discoveryCommands;
|
|
}
|
|
|
|
public final List<ApplicationCommand> getQueryCommands() {
|
|
return this.queryCommands;
|
|
}
|
|
|
|
public int hashCode() {
|
|
List<Application> list = this.applications;
|
|
int i = 0;
|
|
int hashCode = (list != null ? list.hashCode() : 0) * 31;
|
|
List<ApplicationCommand> list2 = this.queryCommands;
|
|
int hashCode2 = (hashCode + (list2 != null ? list2.hashCode() : 0)) * 31;
|
|
WidgetChatInputDiscoveryCommandsModel widgetChatInputDiscoveryCommandsModel = this.discoveryCommands;
|
|
if (widgetChatInputDiscoveryCommandsModel != null) {
|
|
i = widgetChatInputDiscoveryCommandsModel.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("AutocompleteApplicationCommands(applications=");
|
|
L.append(this.applications);
|
|
L.append(", queryCommands=");
|
|
L.append(this.queryCommands);
|
|
L.append(", discoveryCommands=");
|
|
L.append(this.discoveryCommands);
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|