discord-jadx/app/src/main/java/com/discord/widgets/chat/list/entries/ThreadStarterDividerEntry.java

84 lines
2.8 KiB
Java

package com.discord.widgets.chat.list.entries;
import a0.a.a.b;
import c.d.b.a.a;
/* compiled from: ThreadStarterDividerEntry.kt */
public final class ThreadStarterDividerEntry extends ChatListEntry {
private final long channelId;
private final String key;
private final long messageId;
private final int type = 40;
/* JADX DEBUG: TODO: convert one arg to string using `String.valueOf()`, args: [(wrap: int : 0x0010: INVOKE (r4v0 int) = (r0v0 'this' com.discord.widgets.chat.list.entries.ThreadStarterDividerEntry A[IMMUTABLE_TYPE, THIS]) type: VIRTUAL call: com.discord.widgets.chat.list.entries.ThreadStarterDividerEntry.getType():int), (r1v0 long)] */
public ThreadStarterDividerEntry(long j, long j2) {
this.channelId = j;
this.messageId = j2;
StringBuilder sb = new StringBuilder();
sb.append(getType());
sb.append(j);
this.key = sb.toString();
}
public static /* synthetic */ ThreadStarterDividerEntry copy$default(ThreadStarterDividerEntry threadStarterDividerEntry, long j, long j2, int i, Object obj) {
if ((i & 1) != 0) {
j = threadStarterDividerEntry.channelId;
}
if ((i & 2) != 0) {
j2 = threadStarterDividerEntry.messageId;
}
return threadStarterDividerEntry.copy(j, j2);
}
public final long component1() {
return this.channelId;
}
public final long component2() {
return this.messageId;
}
public final ThreadStarterDividerEntry copy(long j, long j2) {
return new ThreadStarterDividerEntry(j, j2);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ThreadStarterDividerEntry)) {
return false;
}
ThreadStarterDividerEntry threadStarterDividerEntry = (ThreadStarterDividerEntry) obj;
return this.channelId == threadStarterDividerEntry.channelId && this.messageId == threadStarterDividerEntry.messageId;
}
public final long getChannelId() {
return this.channelId;
}
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider
public String getKey() {
return this.key;
}
public final long getMessageId() {
return this.messageId;
}
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload
public int getType() {
return this.type;
}
public int hashCode() {
return b.a(this.messageId) + (b.a(this.channelId) * 31);
}
public String toString() {
StringBuilder L = a.L("ThreadStarterDividerEntry(channelId=");
L.append(this.channelId);
L.append(", messageId=");
return a.A(L, this.messageId, ")");
}
}