discord-jadx/app/src/main/java/com/discord/api/botuikit/ButtonComponent.java

108 lines
3.3 KiB
Java

package com.discord.api.botuikit;
import c.d.b.a.a;
import d0.z.d.m;
/* compiled from: ButtonComponent.kt */
public final class ButtonComponent extends ActionComponent {
private final String customId;
private final boolean disabled;
private final ComponentEmoji emoji;
private final String hash;
private final String label;
private final ButtonStyle style;
private final ComponentType type;
private final String url;
public final String a() {
return this.customId;
}
public final boolean b() {
return this.disabled;
}
public final ComponentEmoji c() {
return this.emoji;
}
public final String d() {
return this.hash;
}
public final String e() {
return this.label;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ButtonComponent)) {
return false;
}
ButtonComponent buttonComponent = (ButtonComponent) obj;
return m.areEqual(this.type, buttonComponent.type) && m.areEqual(this.customId, buttonComponent.customId) && m.areEqual(this.hash, buttonComponent.hash) && m.areEqual(this.label, buttonComponent.label) && m.areEqual(this.style, buttonComponent.style) && this.disabled == buttonComponent.disabled && m.areEqual(this.emoji, buttonComponent.emoji) && m.areEqual(this.url, buttonComponent.url);
}
public final ButtonStyle f() {
return this.style;
}
public final String g() {
return this.url;
}
@Override // com.discord.api.botuikit.Component
public ComponentType getType() {
return this.type;
}
public int hashCode() {
ComponentType componentType = this.type;
int i = 0;
int hashCode = (componentType != null ? componentType.hashCode() : 0) * 31;
String str = this.customId;
int hashCode2 = (hashCode + (str != null ? str.hashCode() : 0)) * 31;
String str2 = this.hash;
int hashCode3 = (hashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31;
String str3 = this.label;
int hashCode4 = (hashCode3 + (str3 != null ? str3.hashCode() : 0)) * 31;
ButtonStyle buttonStyle = this.style;
int hashCode5 = (hashCode4 + (buttonStyle != null ? buttonStyle.hashCode() : 0)) * 31;
boolean z2 = this.disabled;
if (z2) {
z2 = true;
}
int i2 = z2 ? 1 : 0;
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = (hashCode5 + i2) * 31;
ComponentEmoji componentEmoji = this.emoji;
int hashCode6 = (i5 + (componentEmoji != null ? componentEmoji.hashCode() : 0)) * 31;
String str4 = this.url;
if (str4 != null) {
i = str4.hashCode();
}
return hashCode6 + i;
}
public String toString() {
StringBuilder L = a.L("ButtonComponent(type=");
L.append(this.type);
L.append(", customId=");
L.append(this.customId);
L.append(", hash=");
L.append(this.hash);
L.append(", label=");
L.append(this.label);
L.append(", style=");
L.append(this.style);
L.append(", disabled=");
L.append(this.disabled);
L.append(", emoji=");
L.append(this.emoji);
L.append(", url=");
return a.D(L, this.url, ")");
}
}