96 lines
3.3 KiB
Java
96 lines
3.3 KiB
Java
package com.discord.api.commands;
|
|
|
|
import b.d.b.a.a;
|
|
import com.discord.models.domain.ModelAuditLogEntry;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
/* compiled from: ApplicationCommandData.kt */
|
|
public final class ApplicationCommandValue {
|
|
private final Boolean focused;
|
|
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, Boolean bool) {
|
|
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME);
|
|
this.name = str;
|
|
this.value = obj;
|
|
this.type = i;
|
|
this.options = list;
|
|
this.focused = bool;
|
|
}
|
|
|
|
public static ApplicationCommandValue a(ApplicationCommandValue applicationCommandValue, String str, Object obj, int i, List list, Boolean bool, int i2) {
|
|
Boolean bool2 = null;
|
|
String str2 = (i2 & 1) != 0 ? applicationCommandValue.name : null;
|
|
if ((i2 & 2) != 0) {
|
|
obj = applicationCommandValue.value;
|
|
}
|
|
if ((i2 & 4) != 0) {
|
|
i = applicationCommandValue.type;
|
|
}
|
|
List<ApplicationCommandValue> list2 = (i2 & 8) != 0 ? applicationCommandValue.options : null;
|
|
if ((i2 & 16) != 0) {
|
|
bool2 = applicationCommandValue.focused;
|
|
}
|
|
m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_NAME);
|
|
return new ApplicationCommandValue(str2, obj, i, list2, bool2);
|
|
}
|
|
|
|
public final String b() {
|
|
return this.name;
|
|
}
|
|
|
|
public final List<ApplicationCommandValue> c() {
|
|
return this.options;
|
|
}
|
|
|
|
public final int d() {
|
|
return this.type;
|
|
}
|
|
|
|
public final Object e() {
|
|
return this.value;
|
|
}
|
|
|
|
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) && m.areEqual(this.focused, applicationCommandValue.focused);
|
|
}
|
|
|
|
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;
|
|
int hashCode3 = (hashCode2 + (list != null ? list.hashCode() : 0)) * 31;
|
|
Boolean bool = this.focused;
|
|
if (bool != null) {
|
|
i = bool.hashCode();
|
|
}
|
|
return hashCode3 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("ApplicationCommandValue(name=");
|
|
R.append(this.name);
|
|
R.append(", value=");
|
|
R.append(this.value);
|
|
R.append(", type=");
|
|
R.append(this.type);
|
|
R.append(", options=");
|
|
R.append(this.options);
|
|
R.append(", focused=");
|
|
return a.C(R, this.focused, ")");
|
|
}
|
|
}
|