84 lines
2.6 KiB
Java
84 lines
2.6 KiB
Java
|
package com.discord.widgets.chat.list.entries;
|
||
|
|
||
|
import a0.a.a.b;
|
||
|
import c.d.b.a.a;
|
||
|
/* compiled from: TimestampEntry.kt */
|
||
|
public final class TimestampEntry extends ChatListEntry {
|
||
|
private final String key;
|
||
|
private final long messageId;
|
||
|
private final long timestamp;
|
||
|
private final int type = 9;
|
||
|
|
||
|
/* 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.TimestampEntry A[IMMUTABLE_TYPE, THIS]) type: VIRTUAL call: com.discord.widgets.chat.list.entries.TimestampEntry.getType():int), (r1v0 long)] */
|
||
|
public TimestampEntry(long j, long j2) {
|
||
|
this.messageId = j;
|
||
|
this.timestamp = j2;
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(getType());
|
||
|
sb.append(j);
|
||
|
this.key = sb.toString();
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ TimestampEntry copy$default(TimestampEntry timestampEntry, long j, long j2, int i, Object obj) {
|
||
|
if ((i & 1) != 0) {
|
||
|
j = timestampEntry.messageId;
|
||
|
}
|
||
|
if ((i & 2) != 0) {
|
||
|
j2 = timestampEntry.timestamp;
|
||
|
}
|
||
|
return timestampEntry.copy(j, j2);
|
||
|
}
|
||
|
|
||
|
public final long component1() {
|
||
|
return this.messageId;
|
||
|
}
|
||
|
|
||
|
public final long component2() {
|
||
|
return this.timestamp;
|
||
|
}
|
||
|
|
||
|
public final TimestampEntry copy(long j, long j2) {
|
||
|
return new TimestampEntry(j, j2);
|
||
|
}
|
||
|
|
||
|
public boolean equals(Object obj) {
|
||
|
if (this == obj) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!(obj instanceof TimestampEntry)) {
|
||
|
return false;
|
||
|
}
|
||
|
TimestampEntry timestampEntry = (TimestampEntry) obj;
|
||
|
return this.messageId == timestampEntry.messageId && this.timestamp == timestampEntry.timestamp;
|
||
|
}
|
||
|
|
||
|
@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;
|
||
|
}
|
||
|
|
||
|
public final long getTimestamp() {
|
||
|
return this.timestamp;
|
||
|
}
|
||
|
|
||
|
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload
|
||
|
public int getType() {
|
||
|
return this.type;
|
||
|
}
|
||
|
|
||
|
public int hashCode() {
|
||
|
return b.a(this.timestamp) + (b.a(this.messageId) * 31);
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
StringBuilder L = a.L("TimestampEntry(messageId=");
|
||
|
L.append(this.messageId);
|
||
|
L.append(", timestamp=");
|
||
|
return a.A(L, this.timestamp, ")");
|
||
|
}
|
||
|
}
|