112 lines
3.8 KiB
Java
112 lines
3.8 KiB
Java
package com.discord.api.commands;
|
|
|
|
import b.d.b.a.a;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
/* compiled from: ApplicationCommand.kt */
|
|
public final class ApplicationCommand {
|
|
private final long applicationId;
|
|
private final Boolean defaultPermissions;
|
|
private final String description;
|
|
private final String guildId;
|
|
|
|
/* renamed from: id reason: collision with root package name */
|
|
private final long f2011id;
|
|
private final String name;
|
|
private final List<ApplicationCommandOption> options;
|
|
private final List<ApplicationCommandPermission> permissions;
|
|
private final String version;
|
|
|
|
public final long a() {
|
|
return this.applicationId;
|
|
}
|
|
|
|
public final Boolean b() {
|
|
return this.defaultPermissions;
|
|
}
|
|
|
|
public final String c() {
|
|
return this.description;
|
|
}
|
|
|
|
public final String d() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final long e() {
|
|
return this.f2011id;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof ApplicationCommand)) {
|
|
return false;
|
|
}
|
|
ApplicationCommand applicationCommand = (ApplicationCommand) obj;
|
|
return this.f2011id == applicationCommand.f2011id && this.applicationId == applicationCommand.applicationId && m.areEqual(this.name, applicationCommand.name) && m.areEqual(this.description, applicationCommand.description) && m.areEqual(this.options, applicationCommand.options) && m.areEqual(this.version, applicationCommand.version) && m.areEqual(this.guildId, applicationCommand.guildId) && m.areEqual(this.defaultPermissions, applicationCommand.defaultPermissions) && m.areEqual(this.permissions, applicationCommand.permissions);
|
|
}
|
|
|
|
public final String f() {
|
|
return this.name;
|
|
}
|
|
|
|
public final List<ApplicationCommandOption> g() {
|
|
return this.options;
|
|
}
|
|
|
|
public final List<ApplicationCommandPermission> h() {
|
|
return this.permissions;
|
|
}
|
|
|
|
public int hashCode() {
|
|
long j = this.f2011id;
|
|
long j2 = this.applicationId;
|
|
int i = ((((int) (j ^ (j >>> 32))) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31;
|
|
String str = this.name;
|
|
int i2 = 0;
|
|
int hashCode = (i + (str != null ? str.hashCode() : 0)) * 31;
|
|
String str2 = this.description;
|
|
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
List<ApplicationCommandOption> list = this.options;
|
|
int hashCode3 = (hashCode2 + (list != null ? list.hashCode() : 0)) * 31;
|
|
String str3 = this.version;
|
|
int hashCode4 = (hashCode3 + (str3 != null ? str3.hashCode() : 0)) * 31;
|
|
String str4 = this.guildId;
|
|
int hashCode5 = (hashCode4 + (str4 != null ? str4.hashCode() : 0)) * 31;
|
|
Boolean bool = this.defaultPermissions;
|
|
int hashCode6 = (hashCode5 + (bool != null ? bool.hashCode() : 0)) * 31;
|
|
List<ApplicationCommandPermission> list2 = this.permissions;
|
|
if (list2 != null) {
|
|
i2 = list2.hashCode();
|
|
}
|
|
return hashCode6 + i2;
|
|
}
|
|
|
|
public final String i() {
|
|
return this.version;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("ApplicationCommand(id=");
|
|
R.append(this.f2011id);
|
|
R.append(", applicationId=");
|
|
R.append(this.applicationId);
|
|
R.append(", name=");
|
|
R.append(this.name);
|
|
R.append(", description=");
|
|
R.append(this.description);
|
|
R.append(", options=");
|
|
R.append(this.options);
|
|
R.append(", version=");
|
|
R.append(this.version);
|
|
R.append(", guildId=");
|
|
R.append(this.guildId);
|
|
R.append(", defaultPermissions=");
|
|
R.append(this.defaultPermissions);
|
|
R.append(", permissions=");
|
|
return a.J(R, this.permissions, ")");
|
|
}
|
|
}
|