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

49 lines
1.5 KiB
Java

package com.discord.api.commands;
import b.d.b.a.a;
import com.discord.models.domain.ModelAuditLogEntry;
import d0.z.d.m;
/* compiled from: ApplicationCommandData.kt */
public final class ApplicationCommandAttachment {
private final String filename;
/* renamed from: id reason: collision with root package name */
private final String f2024id;
public ApplicationCommandAttachment(String str, String str2) {
m.checkNotNullParameter(str, "filename");
m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_ID);
this.filename = str;
this.f2024id = str2;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ApplicationCommandAttachment)) {
return false;
}
ApplicationCommandAttachment applicationCommandAttachment = (ApplicationCommandAttachment) obj;
return m.areEqual(this.filename, applicationCommandAttachment.filename) && m.areEqual(this.f2024id, applicationCommandAttachment.f2024id);
}
public int hashCode() {
String str = this.filename;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
String str2 = this.f2024id;
if (str2 != null) {
i = str2.hashCode();
}
return hashCode + i;
}
public String toString() {
StringBuilder R = a.R("ApplicationCommandAttachment(filename=");
R.append(this.filename);
R.append(", id=");
return a.H(R, this.f2024id, ")");
}
}