discord-jadx/app/src/main/java/com/discord/api/commands/ApplicationCommandValue.java

96 lines
3.3 KiB
Java
Raw Normal View History

2021-08-03 07:33:18 +00:00
package com.discord.api.commands;
2021-12-17 21:59:34 +00:00
import b.d.b.a.a;
import com.discord.models.domain.ModelAuditLogEntry;
2021-11-02 06:38:17 +00:00
import d0.z.d.m;
2021-08-03 07:33:18 +00:00
import java.util.List;
/* compiled from: ApplicationCommandData.kt */
public final class ApplicationCommandValue {
2021-09-21 06:31:55 +00:00
private final Boolean focused;
2021-08-03 07:33:18 +00:00
private final String name;
private final List<ApplicationCommandValue> options;
private final int type;
private final Object value;
2021-09-21 06:31:55 +00:00
public ApplicationCommandValue(String str, Object obj, int i, List<ApplicationCommandValue> list, Boolean bool) {
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME);
2021-08-03 07:33:18 +00:00
this.name = str;
this.value = obj;
this.type = i;
this.options = list;
2021-09-21 06:31:55 +00:00
this.focused = bool;
2021-08-03 07:33:18 +00:00
}
2022-01-29 08:08:32 +00:00
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() {
2021-08-03 07:33:18 +00:00
return this.name;
}
2022-01-29 08:08:32 +00:00
public final List<ApplicationCommandValue> c() {
2021-08-03 07:33:18 +00:00
return this.options;
}
2022-01-29 08:08:32 +00:00
public final int d() {
2021-08-03 07:33:18 +00:00
return this.type;
}
2022-01-29 08:08:32 +00:00
public final Object e() {
2021-08-03 07:33:18 +00:00
return this.value;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ApplicationCommandValue)) {
return false;
}
ApplicationCommandValue applicationCommandValue = (ApplicationCommandValue) obj;
2021-09-21 06:31:55 +00:00
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);
2021-08-03 07:33:18 +00:00
}
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;
2021-09-21 06:31:55 +00:00
int hashCode3 = (hashCode2 + (list != null ? list.hashCode() : 0)) * 31;
Boolean bool = this.focused;
if (bool != null) {
i = bool.hashCode();
2021-08-03 07:33:18 +00:00
}
2021-09-21 06:31:55 +00:00
return hashCode3 + i;
2021-08-03 07:33:18 +00:00
}
public String toString() {
2021-11-05 06:48:17 +00:00
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, ")");
2021-08-03 07:33:18 +00:00
}
}