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

82 lines
3.1 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 ApplicationCommandData {
2022-01-29 08:08:32 +00:00
private final List<ApplicationCommandAttachment> attachments;
2021-08-03 07:33:18 +00:00
private final String guildId;
/* renamed from: id reason: collision with root package name */
2022-01-29 08:08:32 +00:00
private final String f2025id;
2021-08-03 07:33:18 +00:00
private final String name;
private final List<ApplicationCommandValue> options;
private final String version;
2022-01-29 08:08:32 +00:00
public ApplicationCommandData(String str, String str2, String str3, String str4, List<ApplicationCommandValue> list, List<ApplicationCommandAttachment> list2) {
m.checkNotNullParameter(str3, ModelAuditLogEntry.CHANGE_KEY_ID);
m.checkNotNullParameter(str4, ModelAuditLogEntry.CHANGE_KEY_NAME);
2021-08-03 07:33:18 +00:00
this.version = str;
this.guildId = str2;
2022-01-29 08:08:32 +00:00
this.f2025id = str3;
2021-08-03 07:33:18 +00:00
this.name = str4;
this.options = list;
2022-01-29 08:08:32 +00:00
this.attachments = list2;
2021-08-03 07:33:18 +00:00
}
public final String a() {
return this.name;
}
public final List<ApplicationCommandValue> b() {
return this.options;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ApplicationCommandData)) {
return false;
}
ApplicationCommandData applicationCommandData = (ApplicationCommandData) obj;
2022-01-29 08:08:32 +00:00
return m.areEqual(this.version, applicationCommandData.version) && m.areEqual(this.guildId, applicationCommandData.guildId) && m.areEqual(this.f2025id, applicationCommandData.f2025id) && m.areEqual(this.name, applicationCommandData.name) && m.areEqual(this.options, applicationCommandData.options) && m.areEqual(this.attachments, applicationCommandData.attachments);
2021-08-03 07:33:18 +00:00
}
public int hashCode() {
String str = this.version;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
String str2 = this.guildId;
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
2022-01-29 08:08:32 +00:00
String str3 = this.f2025id;
2021-08-03 07:33:18 +00:00
int hashCode3 = (hashCode2 + (str3 != null ? str3.hashCode() : 0)) * 31;
String str4 = this.name;
int hashCode4 = (hashCode3 + (str4 != null ? str4.hashCode() : 0)) * 31;
List<ApplicationCommandValue> list = this.options;
2022-01-29 08:08:32 +00:00
int hashCode5 = (hashCode4 + (list != null ? list.hashCode() : 0)) * 31;
List<ApplicationCommandAttachment> list2 = this.attachments;
if (list2 != null) {
i = list2.hashCode();
2021-08-03 07:33:18 +00:00
}
2022-01-29 08:08:32 +00:00
return hashCode5 + i;
2021-08-03 07:33:18 +00:00
}
public String toString() {
2021-11-05 06:48:17 +00:00
StringBuilder R = a.R("ApplicationCommandData(version=");
R.append(this.version);
R.append(", guildId=");
R.append(this.guildId);
R.append(", id=");
2022-01-29 08:08:32 +00:00
R.append(this.f2025id);
2021-11-05 06:48:17 +00:00
R.append(", name=");
R.append(this.name);
R.append(", options=");
2022-01-29 08:08:32 +00:00
R.append(this.options);
R.append(", attachments=");
return a.K(R, this.attachments, ")");
2021-08-03 07:33:18 +00:00
}
}