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

56 lines
1.8 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;
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 */
2022-01-29 08:08:32 +00:00
private final long f2026id;
2021-08-03 07:33:18 +00:00
private final boolean permission;
private final ApplicationCommandPermissionType type;
public final long a() {
2022-01-29 08:08:32 +00:00
return this.f2026id;
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;
2022-01-29 08:08:32 +00:00
return this.f2026id == applicationCommandPermission.f2026id && m.areEqual(this.type, applicationCommandPermission.type) && this.permission == applicationCommandPermission.permission;
2021-08-03 07:33:18 +00:00
}
public int hashCode() {
2022-01-29 08:08:32 +00:00
long j = this.f2026id;
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=");
2022-01-29 08:08:32 +00:00
R.append(this.f2026id);
2021-11-05 06:48:17 +00:00
R.append(", type=");
R.append(this.type);
R.append(", permission=");
2022-01-13 08:07:50 +00:00
return a.M(R, this.permission, ")");
2021-08-03 07:33:18 +00:00
}
}