2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.api.commands;
|
|
|
|
|
|
|
|
import c.d.b.a.a;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
/* compiled from: ApplicationCommandPermission.kt */
|
|
|
|
public final class ApplicationCommandPermission {
|
|
|
|
|
|
|
|
/* renamed from: id reason: collision with root package name */
|
2021-12-02 18:53:44 +00:00
|
|
|
private final long f1618id;
|
2021-08-03 07:33:18 +00:00
|
|
|
private final boolean permission;
|
|
|
|
private final ApplicationCommandPermissionType type;
|
|
|
|
|
|
|
|
public final long a() {
|
2021-12-02 18:53:44 +00:00
|
|
|
return this.f1618id;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean b() {
|
|
|
|
return this.permission;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof ApplicationCommandPermission)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
ApplicationCommandPermission applicationCommandPermission = (ApplicationCommandPermission) obj;
|
2021-12-02 18:53:44 +00:00
|
|
|
return this.f1618id == applicationCommandPermission.f1618id && m.areEqual(this.type, applicationCommandPermission.type) && this.permission == applicationCommandPermission.permission;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
2021-12-02 18:53:44 +00:00
|
|
|
long j = this.f1618id;
|
2021-08-03 07:33:18 +00:00
|
|
|
int i = ((int) (j ^ (j >>> 32))) * 31;
|
|
|
|
ApplicationCommandPermissionType applicationCommandPermissionType = this.type;
|
|
|
|
int hashCode = (i + (applicationCommandPermissionType != null ? applicationCommandPermissionType.hashCode() : 0)) * 31;
|
|
|
|
boolean z2 = this.permission;
|
|
|
|
if (z2) {
|
|
|
|
z2 = true;
|
|
|
|
}
|
|
|
|
int i2 = z2 ? 1 : 0;
|
|
|
|
int i3 = z2 ? 1 : 0;
|
|
|
|
int i4 = z2 ? 1 : 0;
|
|
|
|
return hashCode + i2;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
2021-11-05 06:48:17 +00:00
|
|
|
StringBuilder R = a.R("ApplicationCommandPermission(id=");
|
2021-12-02 18:53:44 +00:00
|
|
|
R.append(this.f1618id);
|
2021-11-05 06:48:17 +00:00
|
|
|
R.append(", type=");
|
|
|
|
R.append(this.type);
|
|
|
|
R.append(", permission=");
|
|
|
|
return a.L(R, this.permission, ")");
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|