82 lines
3.1 KiB
Java
82 lines
3.1 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 ApplicationCommandData {
|
|
private final List<ApplicationCommandAttachment> attachments;
|
|
private final String guildId;
|
|
|
|
/* renamed from: id reason: collision with root package name */
|
|
private final String f2025id;
|
|
private final String name;
|
|
private final List<ApplicationCommandValue> options;
|
|
private final String version;
|
|
|
|
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);
|
|
this.version = str;
|
|
this.guildId = str2;
|
|
this.f2025id = str3;
|
|
this.name = str4;
|
|
this.options = list;
|
|
this.attachments = list2;
|
|
}
|
|
|
|
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;
|
|
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);
|
|
}
|
|
|
|
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;
|
|
String str3 = this.f2025id;
|
|
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;
|
|
int hashCode5 = (hashCode4 + (list != null ? list.hashCode() : 0)) * 31;
|
|
List<ApplicationCommandAttachment> list2 = this.attachments;
|
|
if (list2 != null) {
|
|
i = list2.hashCode();
|
|
}
|
|
return hashCode5 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("ApplicationCommandData(version=");
|
|
R.append(this.version);
|
|
R.append(", guildId=");
|
|
R.append(this.guildId);
|
|
R.append(", id=");
|
|
R.append(this.f2025id);
|
|
R.append(", name=");
|
|
R.append(this.name);
|
|
R.append(", options=");
|
|
R.append(this.options);
|
|
R.append(", attachments=");
|
|
return a.K(R, this.attachments, ")");
|
|
}
|
|
}
|