2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.chat.list.entries;
|
|
|
|
|
|
|
|
import c.d.b.a.a;
|
2021-07-03 23:36:06 +00:00
|
|
|
import com.discord.models.message.Message;
|
2021-06-27 20:44:35 +00:00
|
|
|
import d0.z.d.m;
|
|
|
|
/* compiled from: BlockedMessagesEntry.kt */
|
|
|
|
public final class BlockedMessagesEntry extends ChatListEntry {
|
|
|
|
private final int blockedCount;
|
|
|
|
private final boolean isExpandedBlock;
|
|
|
|
private final String key = String.valueOf(getType());
|
2021-06-27 20:53:42 +00:00
|
|
|
private final Message message;
|
2021-06-27 20:44:35 +00:00
|
|
|
private final int type = 10;
|
|
|
|
|
2021-06-27 20:53:42 +00:00
|
|
|
public BlockedMessagesEntry(Message message, int i, boolean z2) {
|
|
|
|
m.checkNotNullParameter(message, "message");
|
|
|
|
this.message = message;
|
2021-06-27 20:44:35 +00:00
|
|
|
this.blockedCount = i;
|
|
|
|
this.isExpandedBlock = z2;
|
|
|
|
}
|
|
|
|
|
|
|
|
private final boolean component3() {
|
|
|
|
return this.isExpandedBlock;
|
|
|
|
}
|
|
|
|
|
2021-06-27 20:53:42 +00:00
|
|
|
public static /* synthetic */ BlockedMessagesEntry copy$default(BlockedMessagesEntry blockedMessagesEntry, Message message, int i, boolean z2, int i2, Object obj) {
|
2021-06-27 20:44:35 +00:00
|
|
|
if ((i2 & 1) != 0) {
|
2021-06-27 20:53:42 +00:00
|
|
|
message = blockedMessagesEntry.message;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
if ((i2 & 2) != 0) {
|
|
|
|
i = blockedMessagesEntry.blockedCount;
|
|
|
|
}
|
|
|
|
if ((i2 & 4) != 0) {
|
|
|
|
z2 = blockedMessagesEntry.isExpandedBlock;
|
|
|
|
}
|
2021-06-27 20:53:42 +00:00
|
|
|
return blockedMessagesEntry.copy(message, i, z2);
|
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 int component2() {
|
|
|
|
return this.blockedCount;
|
|
|
|
}
|
|
|
|
|
2021-06-27 20:53:42 +00:00
|
|
|
public final BlockedMessagesEntry copy(Message message, int i, boolean z2) {
|
|
|
|
m.checkNotNullParameter(message, "message");
|
|
|
|
return new BlockedMessagesEntry(message, i, z2);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if (!(obj instanceof BlockedMessagesEntry)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
BlockedMessagesEntry blockedMessagesEntry = (BlockedMessagesEntry) obj;
|
|
|
|
return m.areEqual(this.message, blockedMessagesEntry.message) && this.blockedCount == blockedMessagesEntry.blockedCount && this.isExpandedBlock == blockedMessagesEntry.isExpandedBlock;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int getBlockedCount() {
|
|
|
|
return this.blockedCount;
|
|
|
|
}
|
|
|
|
|
|
|
|
@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;
|
|
|
|
}
|
|
|
|
|
|
|
|
@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;
|
|
|
|
int hashCode = (((message != null ? message.hashCode() : 0) * 31) + this.blockedCount) * 31;
|
2021-06-27 20:44:35 +00:00
|
|
|
boolean z2 = this.isExpandedBlock;
|
|
|
|
if (z2) {
|
|
|
|
z2 = true;
|
|
|
|
}
|
|
|
|
int i = z2 ? 1 : 0;
|
|
|
|
int i2 = z2 ? 1 : 0;
|
|
|
|
int i3 = z2 ? 1 : 0;
|
|
|
|
return hashCode + i;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.discord.widgets.chat.list.entries.ChatListEntry
|
|
|
|
public boolean isInExpandedBlockedMessageChunk() {
|
|
|
|
return this.isExpandedBlock;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder L = a.L("BlockedMessagesEntry(message=");
|
|
|
|
L.append(this.message);
|
|
|
|
L.append(", blockedCount=");
|
|
|
|
L.append(this.blockedCount);
|
|
|
|
L.append(", isExpandedBlock=");
|
|
|
|
return a.G(L, this.isExpandedBlock, ")");
|
|
|
|
}
|
|
|
|
}
|