discord-jadx/app/src/main/java/com/discord/models/botuikit/SelectMessageComponent.java

192 lines
7.7 KiB
Java

package com.discord.models.botuikit;
import c.d.b.a.a;
import com.discord.api.botuikit.ComponentType;
import com.discord.api.botuikit.SelectItem;
import d0.z.d.m;
import java.util.List;
/* compiled from: SelectMessageComponent.kt */
public final class SelectMessageComponent extends ActionMessageComponent {
private final String customId;
private final String hash;
private final int index;
private final int maxValues;
private final int minValues;
private final List<SelectItem> options;
private final String placeholder;
private final List<SelectItem> selectedOptions;
private final ActionInteractionComponentState stateInteraction;
private final ComponentType type;
public SelectMessageComponent(ComponentType componentType, int i, ActionInteractionComponentState actionInteractionComponentState, String str, String str2, String str3, int i2, int i3, List<SelectItem> list, List<SelectItem> list2) {
m.checkNotNullParameter(componentType, "type");
m.checkNotNullParameter(actionInteractionComponentState, "stateInteraction");
m.checkNotNullParameter(str, "customId");
m.checkNotNullParameter(str2, "hash");
m.checkNotNullParameter(list, "options");
m.checkNotNullParameter(list2, "selectedOptions");
this.type = componentType;
this.index = i;
this.stateInteraction = actionInteractionComponentState;
this.customId = str;
this.hash = str2;
this.placeholder = str3;
this.minValues = i2;
this.maxValues = i3;
this.options = list;
this.selectedOptions = list2;
}
public static /* synthetic */ SelectMessageComponent copy$default(SelectMessageComponent selectMessageComponent, ComponentType componentType, int i, ActionInteractionComponentState actionInteractionComponentState, String str, String str2, String str3, int i2, int i3, List list, List list2, int i4, Object obj) {
return selectMessageComponent.copy((i4 & 1) != 0 ? selectMessageComponent.getType() : componentType, (i4 & 2) != 0 ? selectMessageComponent.getIndex() : i, (i4 & 4) != 0 ? selectMessageComponent.getStateInteraction() : actionInteractionComponentState, (i4 & 8) != 0 ? selectMessageComponent.customId : str, (i4 & 16) != 0 ? selectMessageComponent.hash : str2, (i4 & 32) != 0 ? selectMessageComponent.placeholder : str3, (i4 & 64) != 0 ? selectMessageComponent.minValues : i2, (i4 & 128) != 0 ? selectMessageComponent.maxValues : i3, (i4 & 256) != 0 ? selectMessageComponent.options : list, (i4 & 512) != 0 ? selectMessageComponent.selectedOptions : list2);
}
public final ComponentType component1() {
return getType();
}
public final List<SelectItem> component10() {
return this.selectedOptions;
}
public final int component2() {
return getIndex();
}
public final ActionInteractionComponentState component3() {
return getStateInteraction();
}
public final String component4() {
return this.customId;
}
public final String component5() {
return this.hash;
}
public final String component6() {
return this.placeholder;
}
public final int component7() {
return this.minValues;
}
public final int component8() {
return this.maxValues;
}
public final List<SelectItem> component9() {
return this.options;
}
public final SelectMessageComponent copy(ComponentType componentType, int i, ActionInteractionComponentState actionInteractionComponentState, String str, String str2, String str3, int i2, int i3, List<SelectItem> list, List<SelectItem> list2) {
m.checkNotNullParameter(componentType, "type");
m.checkNotNullParameter(actionInteractionComponentState, "stateInteraction");
m.checkNotNullParameter(str, "customId");
m.checkNotNullParameter(str2, "hash");
m.checkNotNullParameter(list, "options");
m.checkNotNullParameter(list2, "selectedOptions");
return new SelectMessageComponent(componentType, i, actionInteractionComponentState, str, str2, str3, i2, i3, list, list2);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof SelectMessageComponent)) {
return false;
}
SelectMessageComponent selectMessageComponent = (SelectMessageComponent) obj;
return m.areEqual(getType(), selectMessageComponent.getType()) && getIndex() == selectMessageComponent.getIndex() && m.areEqual(getStateInteraction(), selectMessageComponent.getStateInteraction()) && m.areEqual(this.customId, selectMessageComponent.customId) && m.areEqual(this.hash, selectMessageComponent.hash) && m.areEqual(this.placeholder, selectMessageComponent.placeholder) && this.minValues == selectMessageComponent.minValues && this.maxValues == selectMessageComponent.maxValues && m.areEqual(this.options, selectMessageComponent.options) && m.areEqual(this.selectedOptions, selectMessageComponent.selectedOptions);
}
public final String getCustomId() {
return this.customId;
}
public final String getHash() {
return this.hash;
}
@Override // com.discord.models.botuikit.MessageComponent
public int getIndex() {
return this.index;
}
public final int getMaxValues() {
return this.maxValues;
}
public final int getMinValues() {
return this.minValues;
}
public final List<SelectItem> getOptions() {
return this.options;
}
public final String getPlaceholder() {
return this.placeholder;
}
public final List<SelectItem> getSelectedOptions() {
return this.selectedOptions;
}
@Override // com.discord.models.botuikit.ActionMessageComponent
public ActionInteractionComponentState getStateInteraction() {
return this.stateInteraction;
}
@Override // com.discord.models.botuikit.MessageComponent
public ComponentType getType() {
return this.type;
}
public int hashCode() {
ComponentType type = getType();
int i = 0;
int index = (getIndex() + ((type != null ? type.hashCode() : 0) * 31)) * 31;
ActionInteractionComponentState stateInteraction = getStateInteraction();
int hashCode = (index + (stateInteraction != null ? stateInteraction.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.placeholder;
int hashCode4 = (((((hashCode3 + (str3 != null ? str3.hashCode() : 0)) * 31) + this.minValues) * 31) + this.maxValues) * 31;
List<SelectItem> list = this.options;
int hashCode5 = (hashCode4 + (list != null ? list.hashCode() : 0)) * 31;
List<SelectItem> list2 = this.selectedOptions;
if (list2 != null) {
i = list2.hashCode();
}
return hashCode5 + i;
}
public String toString() {
StringBuilder L = a.L("SelectMessageComponent(type=");
L.append(getType());
L.append(", index=");
L.append(getIndex());
L.append(", stateInteraction=");
L.append(getStateInteraction());
L.append(", customId=");
L.append(this.customId);
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=");
L.append(this.options);
L.append(", selectedOptions=");
return a.E(L, this.selectedOptions, ")");
}
}