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.message.Message; 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 Message message; private final List messageComponents; private final int type = 36; /* JADX DEBUG: Multi-variable search result rejected for r6v0, resolved type: java.util.List */ /* JADX WARN: Multi-variable type inference failed */ public BotUiComponentEntry(Message message, long j, Long l, List list) { m.checkNotNullParameter(message, "message"); m.checkNotNullParameter(list, "messageComponents"); this.message = message; this.applicationId = j; this.guildId = l; this.messageComponents = list; StringBuilder sb = new StringBuilder(); sb.append(getType()); sb.append(" -- "); Object nonce = message.getNonce(); sb.append(nonce == null ? Long.valueOf(message.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, Message message, long j, Long l, List list, int i, Object obj) { if ((i & 1) != 0) { message = 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(message, j, l, list); } public final Message component1() { return this.message; } public final long component2() { return this.applicationId; } public final Long component3() { return this.guildId; } public final List component4() { return this.messageComponents; } public final BotUiComponentEntry copy(Message message, long j, Long l, List list) { m.checkNotNullParameter(message, "message"); m.checkNotNullParameter(list, "messageComponents"); return new BotUiComponentEntry(message, 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 Message getMessage() { return this.message; } public final List getMessageComponents() { return this.messageComponents; } @Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload public int getType() { return this.type; } public int hashCode() { Message message = this.message; int i = 0; int a = (b.a(this.applicationId) + ((message != null ? message.hashCode() : 0) * 31)) * 31; Long l = this.guildId; int hashCode = (a + (l != null ? l.hashCode() : 0)) * 31; List 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, ")"); } }