136 lines
4.8 KiB
Java
136 lines
4.8 KiB
Java
|
package com.discord.widgets.chat.list.entries;
|
||
|
|
||
|
import a0.a.a.b;
|
||
|
import c.d.b.a.a;
|
||
|
import com.discord.models.botuikit.MessageComponent;
|
||
|
import com.discord.models.domain.ModelMessage;
|
||
|
import d0.z.d.m;
|
||
|
import java.util.List;
|
||
|
/* compiled from: BotUiComponentEntry.kt */
|
||
|
public final class BotUiComponentEntry extends ChatListEntry {
|
||
|
private final long applicationId;
|
||
|
private final Long guildId;
|
||
|
private final String key;
|
||
|
private final ModelMessage message;
|
||
|
private final List<MessageComponent> messageComponents;
|
||
|
private final int type = 36;
|
||
|
|
||
|
/* JADX DEBUG: Multi-variable search result rejected for r6v0, resolved type: java.util.List<? extends com.discord.models.botuikit.MessageComponent> */
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
public BotUiComponentEntry(ModelMessage modelMessage, long j, Long l, List<? extends MessageComponent> list) {
|
||
|
m.checkNotNullParameter(modelMessage, "message");
|
||
|
m.checkNotNullParameter(list, "messageComponents");
|
||
|
this.message = modelMessage;
|
||
|
this.applicationId = j;
|
||
|
this.guildId = l;
|
||
|
this.messageComponents = list;
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(getType());
|
||
|
sb.append(" -- ");
|
||
|
Object nonce = modelMessage.getNonce();
|
||
|
sb.append(nonce == null ? Long.valueOf(modelMessage.getId()) : nonce);
|
||
|
this.key = sb.toString();
|
||
|
}
|
||
|
|
||
|
/* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: com.discord.widgets.chat.list.entries.BotUiComponentEntry */
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
public static /* synthetic */ BotUiComponentEntry copy$default(BotUiComponentEntry botUiComponentEntry, ModelMessage modelMessage, long j, Long l, List list, int i, Object obj) {
|
||
|
if ((i & 1) != 0) {
|
||
|
modelMessage = botUiComponentEntry.message;
|
||
|
}
|
||
|
if ((i & 2) != 0) {
|
||
|
j = botUiComponentEntry.applicationId;
|
||
|
}
|
||
|
if ((i & 4) != 0) {
|
||
|
l = botUiComponentEntry.guildId;
|
||
|
}
|
||
|
if ((i & 8) != 0) {
|
||
|
list = botUiComponentEntry.messageComponents;
|
||
|
}
|
||
|
return botUiComponentEntry.copy(modelMessage, j, l, list);
|
||
|
}
|
||
|
|
||
|
public final ModelMessage component1() {
|
||
|
return this.message;
|
||
|
}
|
||
|
|
||
|
public final long component2() {
|
||
|
return this.applicationId;
|
||
|
}
|
||
|
|
||
|
public final Long component3() {
|
||
|
return this.guildId;
|
||
|
}
|
||
|
|
||
|
public final List<MessageComponent> component4() {
|
||
|
return this.messageComponents;
|
||
|
}
|
||
|
|
||
|
public final BotUiComponentEntry copy(ModelMessage modelMessage, long j, Long l, List<? extends MessageComponent> list) {
|
||
|
m.checkNotNullParameter(modelMessage, "message");
|
||
|
m.checkNotNullParameter(list, "messageComponents");
|
||
|
return new BotUiComponentEntry(modelMessage, j, l, list);
|
||
|
}
|
||
|
|
||
|
public boolean equals(Object obj) {
|
||
|
if (this == obj) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!(obj instanceof BotUiComponentEntry)) {
|
||
|
return false;
|
||
|
}
|
||
|
BotUiComponentEntry botUiComponentEntry = (BotUiComponentEntry) obj;
|
||
|
return m.areEqual(this.message, botUiComponentEntry.message) && this.applicationId == botUiComponentEntry.applicationId && m.areEqual(this.guildId, botUiComponentEntry.guildId) && m.areEqual(this.messageComponents, botUiComponentEntry.messageComponents);
|
||
|
}
|
||
|
|
||
|
public final long getApplicationId() {
|
||
|
return this.applicationId;
|
||
|
}
|
||
|
|
||
|
public final Long getGuildId() {
|
||
|
return this.guildId;
|
||
|
}
|
||
|
|
||
|
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider
|
||
|
public String getKey() {
|
||
|
return this.key;
|
||
|
}
|
||
|
|
||
|
public final ModelMessage getMessage() {
|
||
|
return this.message;
|
||
|
}
|
||
|
|
||
|
public final List<MessageComponent> getMessageComponents() {
|
||
|
return this.messageComponents;
|
||
|
}
|
||
|
|
||
|
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload
|
||
|
public int getType() {
|
||
|
return this.type;
|
||
|
}
|
||
|
|
||
|
public int hashCode() {
|
||
|
ModelMessage modelMessage = this.message;
|
||
|
int i = 0;
|
||
|
int a = (b.a(this.applicationId) + ((modelMessage != null ? modelMessage.hashCode() : 0) * 31)) * 31;
|
||
|
Long l = this.guildId;
|
||
|
int hashCode = (a + (l != null ? l.hashCode() : 0)) * 31;
|
||
|
List<MessageComponent> list = this.messageComponents;
|
||
|
if (list != null) {
|
||
|
i = list.hashCode();
|
||
|
}
|
||
|
return hashCode + i;
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
StringBuilder L = a.L("BotUiComponentEntry(message=");
|
||
|
L.append(this.message);
|
||
|
L.append(", applicationId=");
|
||
|
L.append(this.applicationId);
|
||
|
L.append(", guildId=");
|
||
|
L.append(this.guildId);
|
||
|
L.append(", messageComponents=");
|
||
|
return a.E(L, this.messageComponents, ")");
|
||
|
}
|
||
|
}
|