131 lines
5.1 KiB
Java
131 lines
5.1 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 java.util.List;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: ApplicationCommandData.kt */
|
|
public final class ApplicationCommandData {
|
|
private final Application application;
|
|
private final ApplicationCommand applicationCommand;
|
|
private final boolean validInputs;
|
|
private final List<ApplicationCommandValue> values;
|
|
|
|
public ApplicationCommandData(Application application, ApplicationCommand applicationCommand, List<ApplicationCommandValue> list, boolean z2) {
|
|
m.checkNotNullParameter(application, "application");
|
|
m.checkNotNullParameter(applicationCommand, "applicationCommand");
|
|
m.checkNotNullParameter(list, "values");
|
|
this.application = application;
|
|
this.applicationCommand = applicationCommand;
|
|
this.values = list;
|
|
this.validInputs = z2;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ ApplicationCommandData(Application application, ApplicationCommand applicationCommand, List list, boolean z2, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(application, applicationCommand, list, (i & 8) != 0 ? false : z2);
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.chat.input.models.ApplicationCommandData */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ ApplicationCommandData copy$default(ApplicationCommandData applicationCommandData, Application application, ApplicationCommand applicationCommand, List list, boolean z2, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
application = applicationCommandData.application;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
applicationCommand = applicationCommandData.applicationCommand;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
list = applicationCommandData.values;
|
|
}
|
|
if ((i & 8) != 0) {
|
|
z2 = applicationCommandData.validInputs;
|
|
}
|
|
return applicationCommandData.copy(application, applicationCommand, list, z2);
|
|
}
|
|
|
|
public final Application component1() {
|
|
return this.application;
|
|
}
|
|
|
|
public final ApplicationCommand component2() {
|
|
return this.applicationCommand;
|
|
}
|
|
|
|
public final List<ApplicationCommandValue> component3() {
|
|
return this.values;
|
|
}
|
|
|
|
public final boolean component4() {
|
|
return this.validInputs;
|
|
}
|
|
|
|
public final ApplicationCommandData copy(Application application, ApplicationCommand applicationCommand, List<ApplicationCommandValue> list, boolean z2) {
|
|
m.checkNotNullParameter(application, "application");
|
|
m.checkNotNullParameter(applicationCommand, "applicationCommand");
|
|
m.checkNotNullParameter(list, "values");
|
|
return new ApplicationCommandData(application, applicationCommand, list, z2);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof ApplicationCommandData)) {
|
|
return false;
|
|
}
|
|
ApplicationCommandData applicationCommandData = (ApplicationCommandData) obj;
|
|
return m.areEqual(this.application, applicationCommandData.application) && m.areEqual(this.applicationCommand, applicationCommandData.applicationCommand) && m.areEqual(this.values, applicationCommandData.values) && this.validInputs == applicationCommandData.validInputs;
|
|
}
|
|
|
|
public final Application getApplication() {
|
|
return this.application;
|
|
}
|
|
|
|
public final ApplicationCommand getApplicationCommand() {
|
|
return this.applicationCommand;
|
|
}
|
|
|
|
public final boolean getValidInputs() {
|
|
return this.validInputs;
|
|
}
|
|
|
|
public final List<ApplicationCommandValue> getValues() {
|
|
return this.values;
|
|
}
|
|
|
|
public int hashCode() {
|
|
Application application = this.application;
|
|
int i = 0;
|
|
int hashCode = (application != null ? application.hashCode() : 0) * 31;
|
|
ApplicationCommand applicationCommand = this.applicationCommand;
|
|
int hashCode2 = (hashCode + (applicationCommand != null ? applicationCommand.hashCode() : 0)) * 31;
|
|
List<ApplicationCommandValue> list = this.values;
|
|
if (list != null) {
|
|
i = list.hashCode();
|
|
}
|
|
int i2 = (hashCode2 + i) * 31;
|
|
boolean z2 = this.validInputs;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i3 = z2 ? 1 : 0;
|
|
int i4 = z2 ? 1 : 0;
|
|
int i5 = z2 ? 1 : 0;
|
|
return i2 + i3;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("ApplicationCommandData(application=");
|
|
L.append(this.application);
|
|
L.append(", applicationCommand=");
|
|
L.append(this.applicationCommand);
|
|
L.append(", values=");
|
|
L.append(this.values);
|
|
L.append(", validInputs=");
|
|
return a.G(L, this.validInputs, ")");
|
|
}
|
|
}
|