2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.chat.list.entries;
|
|
|
|
|
|
|
|
import a0.a.a.b;
|
|
|
|
import c.d.b.a.a;
|
2021-06-27 20:53:42 +00:00
|
|
|
import com.discord.api.message.Message;
|
2021-06-27 20:44:35 +00:00
|
|
|
import com.discord.models.botuikit.MessageComponent;
|
|
|
|
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;
|
2021-06-27 20:53:42 +00:00
|
|
|
private final Message message;
|
2021-06-27 20:44:35 +00:00
|
|
|
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 */
|
2021-06-27 20:53:42 +00:00
|
|
|
public BotUiComponentEntry(Message message, long j, Long l, List<? extends MessageComponent> list) {
|
|
|
|
m.checkNotNullParameter(message, "message");
|
2021-06-27 20:44:35 +00:00
|
|
|
m.checkNotNullParameter(list, "messageComponents");
|
2021-06-27 20:53:42 +00:00
|
|
|
this.message = message;
|
2021-06-27 20:44:35 +00:00
|
|
|
this.applicationId = j;
|
|
|
|
this.guildId = l;
|
|
|
|
this.messageComponents = list;
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
sb.append(getType());
|
|
|
|
sb.append(" -- ");
|
2021-06-27 20:53:42 +00:00
|
|
|
Object B = message.B();
|
|
|
|
sb.append(B == null ? Long.valueOf(message.r()) : B);
|
2021-06-27 20:44:35 +00:00
|
|
|
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 */
|
2021-06-27 20:53:42 +00:00
|
|
|
public static /* synthetic */ BotUiComponentEntry copy$default(BotUiComponentEntry botUiComponentEntry, Message message, long j, Long l, List list, int i, Object obj) {
|
2021-06-27 20:44:35 +00:00
|
|
|
if ((i & 1) != 0) {
|
2021-06-27 20:53:42 +00:00
|
|
|
message = botUiComponentEntry.message;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
if ((i & 2) != 0) {
|
|
|
|
j = botUiComponentEntry.applicationId;
|
|
|
|
}
|
|
|
|
if ((i & 4) != 0) {
|
|
|
|
l = botUiComponentEntry.guildId;
|
|
|
|
}
|
|
|
|
if ((i & 8) != 0) {
|
|
|
|
list = botUiComponentEntry.messageComponents;
|
|
|
|
}
|
2021-06-27 20:53:42 +00:00
|
|
|
return botUiComponentEntry.copy(message, j, l, list);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-06-27 20:53:42 +00:00
|
|
|
public final Message component1() {
|
2021-06-27 20:44:35 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-06-27 20:53:42 +00:00
|
|
|
public final BotUiComponentEntry copy(Message message, long j, Long l, List<? extends MessageComponent> list) {
|
|
|
|
m.checkNotNullParameter(message, "message");
|
2021-06-27 20:44:35 +00:00
|
|
|
m.checkNotNullParameter(list, "messageComponents");
|
2021-06-27 20:53:42 +00:00
|
|
|
return new BotUiComponentEntry(message, j, l, list);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-06-27 20:53:42 +00:00
|
|
|
public final Message getMessage() {
|
2021-06-27 20:44:35 +00:00
|
|
|
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() {
|
2021-06-27 20:53:42 +00:00
|
|
|
Message message = this.message;
|
2021-06-27 20:44:35 +00:00
|
|
|
int i = 0;
|
2021-06-27 20:53:42 +00:00
|
|
|
int a = (b.a(this.applicationId) + ((message != null ? message.hashCode() : 0) * 31)) * 31;
|
2021-06-27 20:44:35 +00:00
|
|
|
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, ")");
|
|
|
|
}
|
|
|
|
}
|