103 lines
3.0 KiB
Java
103 lines
3.0 KiB
Java
package com.discord.widgets.chat.list.entries;
|
|
|
|
import a0.a.a.b;
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
/* compiled from: GiftEntry.kt */
|
|
public final class GiftEntry extends ChatListEntry {
|
|
private final long channelId;
|
|
private final String giftCode;
|
|
private final String key;
|
|
private final long messageId;
|
|
private final int type = 26;
|
|
private final long userId;
|
|
|
|
public GiftEntry(long j, long j2, long j3, String str) {
|
|
m.checkNotNullParameter(str, "giftCode");
|
|
this.userId = j;
|
|
this.messageId = j2;
|
|
this.channelId = j3;
|
|
this.giftCode = str;
|
|
this.key = "26 -- " + j2 + " -- " + str;
|
|
}
|
|
|
|
public static /* synthetic */ GiftEntry copy$default(GiftEntry giftEntry, long j, long j2, long j3, String str, int i, Object obj) {
|
|
return giftEntry.copy((i & 1) != 0 ? giftEntry.userId : j, (i & 2) != 0 ? giftEntry.messageId : j2, (i & 4) != 0 ? giftEntry.channelId : j3, (i & 8) != 0 ? giftEntry.giftCode : str);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.userId;
|
|
}
|
|
|
|
public final long component2() {
|
|
return this.messageId;
|
|
}
|
|
|
|
public final long component3() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final String component4() {
|
|
return this.giftCode;
|
|
}
|
|
|
|
public final GiftEntry copy(long j, long j2, long j3, String str) {
|
|
m.checkNotNullParameter(str, "giftCode");
|
|
return new GiftEntry(j, j2, j3, str);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof GiftEntry)) {
|
|
return false;
|
|
}
|
|
GiftEntry giftEntry = (GiftEntry) obj;
|
|
return this.userId == giftEntry.userId && this.messageId == giftEntry.messageId && this.channelId == giftEntry.channelId && m.areEqual(this.giftCode, giftEntry.giftCode);
|
|
}
|
|
|
|
public final long getChannelId() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final String getGiftCode() {
|
|
return this.giftCode;
|
|
}
|
|
|
|
@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 final long getUserId() {
|
|
return this.userId;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int a = (b.a(this.channelId) + ((b.a(this.messageId) + (b.a(this.userId) * 31)) * 31)) * 31;
|
|
String str = this.giftCode;
|
|
return a + (str != null ? str.hashCode() : 0);
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("GiftEntry(userId=");
|
|
L.append(this.userId);
|
|
L.append(", messageId=");
|
|
L.append(this.messageId);
|
|
L.append(", channelId=");
|
|
L.append(this.channelId);
|
|
L.append(", giftCode=");
|
|
return a.D(L, this.giftCode, ")");
|
|
}
|
|
}
|