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

94 lines
3.6 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 d0.z.d.m;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: AutocompleteInputCommandContext.kt */
public final class AutocompleteInputCommandContext {
private final boolean isCommand;
private final Application selectedApplication;
private final ApplicationCommand selectedCommand;
public AutocompleteInputCommandContext() {
this(null, null, 3, null);
}
public AutocompleteInputCommandContext(Application application, ApplicationCommand applicationCommand) {
this.selectedApplication = application;
this.selectedCommand = applicationCommand;
this.isCommand = applicationCommand != null;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ AutocompleteInputCommandContext(Application application, ApplicationCommand applicationCommand, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? null : application, (i & 2) != 0 ? null : applicationCommand);
}
public static /* synthetic */ AutocompleteInputCommandContext copy$default(AutocompleteInputCommandContext autocompleteInputCommandContext, Application application, ApplicationCommand applicationCommand, int i, Object obj) {
if ((i & 1) != 0) {
application = autocompleteInputCommandContext.selectedApplication;
}
if ((i & 2) != 0) {
applicationCommand = autocompleteInputCommandContext.selectedCommand;
}
return autocompleteInputCommandContext.copy(application, applicationCommand);
}
public final Application component1() {
return this.selectedApplication;
}
public final ApplicationCommand component2() {
return this.selectedCommand;
}
public final AutocompleteInputCommandContext copy(Application application, ApplicationCommand applicationCommand) {
return new AutocompleteInputCommandContext(application, applicationCommand);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof AutocompleteInputCommandContext)) {
return false;
}
AutocompleteInputCommandContext autocompleteInputCommandContext = (AutocompleteInputCommandContext) obj;
return m.areEqual(this.selectedApplication, autocompleteInputCommandContext.selectedApplication) && m.areEqual(this.selectedCommand, autocompleteInputCommandContext.selectedCommand);
}
public final Application getSelectedApplication() {
return this.selectedApplication;
}
public final ApplicationCommand getSelectedCommand() {
return this.selectedCommand;
}
public int hashCode() {
Application application = this.selectedApplication;
int i = 0;
int hashCode = (application != null ? application.hashCode() : 0) * 31;
ApplicationCommand applicationCommand = this.selectedCommand;
if (applicationCommand != null) {
i = applicationCommand.hashCode();
}
return hashCode + i;
}
public final boolean isCommand() {
return this.isCommand;
}
public String toString() {
StringBuilder L = a.L("AutocompleteInputCommandContext(selectedApplication=");
L.append(this.selectedApplication);
L.append(", selectedCommand=");
L.append(this.selectedCommand);
L.append(")");
return L.toString();
}
}