105 lines
3.2 KiB
Java
105 lines
3.2 KiB
Java
package com.discord.api.botuikit;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
import java.util.List;
|
|
/* compiled from: SelectComponent.kt */
|
|
public final class SelectComponent extends ActionComponent {
|
|
private final String customId;
|
|
private final boolean disabled;
|
|
private final String hash;
|
|
private final int maxValues;
|
|
private final int minValues;
|
|
private final List<SelectItem> options;
|
|
private final String placeholder;
|
|
private final ComponentType type;
|
|
|
|
public final String a() {
|
|
return this.customId;
|
|
}
|
|
|
|
public final boolean b() {
|
|
return this.disabled;
|
|
}
|
|
|
|
public final String c() {
|
|
return this.hash;
|
|
}
|
|
|
|
public final int d() {
|
|
return this.maxValues;
|
|
}
|
|
|
|
public final int e() {
|
|
return this.minValues;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof SelectComponent)) {
|
|
return false;
|
|
}
|
|
SelectComponent selectComponent = (SelectComponent) obj;
|
|
return m.areEqual(this.type, selectComponent.type) && m.areEqual(this.customId, selectComponent.customId) && this.disabled == selectComponent.disabled && m.areEqual(this.hash, selectComponent.hash) && m.areEqual(this.placeholder, selectComponent.placeholder) && this.minValues == selectComponent.minValues && this.maxValues == selectComponent.maxValues && m.areEqual(this.options, selectComponent.options);
|
|
}
|
|
|
|
public final List<SelectItem> f() {
|
|
return this.options;
|
|
}
|
|
|
|
public final String g() {
|
|
return this.placeholder;
|
|
}
|
|
|
|
@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;
|
|
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 = (hashCode2 + i2) * 31;
|
|
String str2 = this.hash;
|
|
int hashCode3 = (i5 + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
String str3 = this.placeholder;
|
|
int hashCode4 = (((((hashCode3 + (str3 != null ? str3.hashCode() : 0)) * 31) + this.minValues) * 31) + this.maxValues) * 31;
|
|
List<SelectItem> list = this.options;
|
|
if (list != null) {
|
|
i = list.hashCode();
|
|
}
|
|
return hashCode4 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("SelectComponent(type=");
|
|
L.append(this.type);
|
|
L.append(", customId=");
|
|
L.append(this.customId);
|
|
L.append(", disabled=");
|
|
L.append(this.disabled);
|
|
L.append(", hash=");
|
|
L.append(this.hash);
|
|
L.append(", placeholder=");
|
|
L.append(this.placeholder);
|
|
L.append(", minValues=");
|
|
L.append(this.minValues);
|
|
L.append(", maxValues=");
|
|
L.append(this.maxValues);
|
|
L.append(", options=");
|
|
return a.E(L, this.options, ")");
|
|
}
|
|
}
|