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

112 lines
4.1 KiB
Java

package com.discord.models.botuikit;
import c.d.b.a.a;
import com.discord.api.botuikit.ComponentType;
import d0.z.d.m;
import java.util.List;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: ActionRowMessageComponent.kt */
public final class ActionRowMessageComponent extends LayoutMessageComponent {
private final List<MessageComponent> components;
private final int index;
private final ComponentType type;
/* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: java.util.List<? extends com.discord.models.botuikit.MessageComponent> */
/* JADX WARN: Multi-variable type inference failed */
public ActionRowMessageComponent(ComponentType componentType, int i, List<? extends MessageComponent> list) {
m.checkNotNullParameter(componentType, "type");
m.checkNotNullParameter(list, "components");
this.type = componentType;
this.index = i;
this.components = list;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ ActionRowMessageComponent(ComponentType componentType, int i, List list, int i2, DefaultConstructorMarker defaultConstructorMarker) {
this(componentType, (i2 & 2) != 0 ? 0 : i, list);
}
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.models.botuikit.ActionRowMessageComponent */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ ActionRowMessageComponent copy$default(ActionRowMessageComponent actionRowMessageComponent, ComponentType componentType, int i, List list, int i2, Object obj) {
if ((i2 & 1) != 0) {
componentType = actionRowMessageComponent.getType();
}
if ((i2 & 2) != 0) {
i = actionRowMessageComponent.getIndex();
}
if ((i2 & 4) != 0) {
list = actionRowMessageComponent.components;
}
return actionRowMessageComponent.copy(componentType, i, list);
}
public final ComponentType component1() {
return getType();
}
public final int component2() {
return getIndex();
}
public final List<MessageComponent> component3() {
return this.components;
}
public final ActionRowMessageComponent copy(ComponentType componentType, int i, List<? extends MessageComponent> list) {
m.checkNotNullParameter(componentType, "type");
m.checkNotNullParameter(list, "components");
return new ActionRowMessageComponent(componentType, i, list);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ActionRowMessageComponent)) {
return false;
}
ActionRowMessageComponent actionRowMessageComponent = (ActionRowMessageComponent) obj;
return m.areEqual(getType(), actionRowMessageComponent.getType()) && getIndex() == actionRowMessageComponent.getIndex() && m.areEqual(this.components, actionRowMessageComponent.components);
}
@Override // com.discord.models.botuikit.LayoutMessageComponent
public List<MessageComponent> getChildren() {
return this.components;
}
public final List<MessageComponent> getComponents() {
return this.components;
}
@Override // com.discord.models.botuikit.MessageComponent
public int getIndex() {
return this.index;
}
@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;
List<MessageComponent> list = this.components;
if (list != null) {
i = list.hashCode();
}
return index + i;
}
public String toString() {
StringBuilder L = a.L("ActionRowMessageComponent(type=");
L.append(getType());
L.append(", index=");
L.append(getIndex());
L.append(", components=");
return a.E(L, this.components, ")");
}
}