117 lines
3.8 KiB
Java
117 lines
3.8 KiB
Java
package com.discord.widgets.chat.input.models;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: ApplicationCommandValue.kt */
|
|
public final class ApplicationCommandValue {
|
|
private final String name;
|
|
private final List<ApplicationCommandValue> options;
|
|
private final int type;
|
|
private final Object value;
|
|
|
|
public ApplicationCommandValue(String str, Object obj, int i, List<ApplicationCommandValue> list) {
|
|
m.checkNotNullParameter(str, "name");
|
|
this.name = str;
|
|
this.value = obj;
|
|
this.type = i;
|
|
this.options = list;
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ ApplicationCommandValue(String str, Object obj, int i, List list, int i2, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(str, (i2 & 2) != 0 ? null : obj, i, (i2 & 8) != 0 ? null : list);
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.chat.input.models.ApplicationCommandValue */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static /* synthetic */ ApplicationCommandValue copy$default(ApplicationCommandValue applicationCommandValue, String str, Object obj, int i, List list, int i2, Object obj2) {
|
|
if ((i2 & 1) != 0) {
|
|
str = applicationCommandValue.name;
|
|
}
|
|
if ((i2 & 2) != 0) {
|
|
obj = applicationCommandValue.value;
|
|
}
|
|
if ((i2 & 4) != 0) {
|
|
i = applicationCommandValue.type;
|
|
}
|
|
if ((i2 & 8) != 0) {
|
|
list = applicationCommandValue.options;
|
|
}
|
|
return applicationCommandValue.copy(str, obj, i, list);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.name;
|
|
}
|
|
|
|
public final Object component2() {
|
|
return this.value;
|
|
}
|
|
|
|
public final int component3() {
|
|
return this.type;
|
|
}
|
|
|
|
public final List<ApplicationCommandValue> component4() {
|
|
return this.options;
|
|
}
|
|
|
|
public final ApplicationCommandValue copy(String str, Object obj, int i, List<ApplicationCommandValue> list) {
|
|
m.checkNotNullParameter(str, "name");
|
|
return new ApplicationCommandValue(str, obj, i, list);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof ApplicationCommandValue)) {
|
|
return false;
|
|
}
|
|
ApplicationCommandValue applicationCommandValue = (ApplicationCommandValue) obj;
|
|
return m.areEqual(this.name, applicationCommandValue.name) && m.areEqual(this.value, applicationCommandValue.value) && this.type == applicationCommandValue.type && m.areEqual(this.options, applicationCommandValue.options);
|
|
}
|
|
|
|
public final String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public final List<ApplicationCommandValue> getOptions() {
|
|
return this.options;
|
|
}
|
|
|
|
public final int getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public final Object getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.name;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
Object obj = this.value;
|
|
int hashCode2 = (((hashCode + (obj != null ? obj.hashCode() : 0)) * 31) + this.type) * 31;
|
|
List<ApplicationCommandValue> list = this.options;
|
|
if (list != null) {
|
|
i = list.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("ApplicationCommandValue(name=");
|
|
L.append(this.name);
|
|
L.append(", value=");
|
|
L.append(this.value);
|
|
L.append(", type=");
|
|
L.append(this.type);
|
|
L.append(", options=");
|
|
return a.E(L, this.options, ")");
|
|
}
|
|
}
|