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: InviteEntry.kt */
|
|
public final class InviteEntry extends ChatListEntry {
|
|
private final long guildId;
|
|
private final String inviteCode;
|
|
private final String key;
|
|
private final long messageId;
|
|
private final int type = 24;
|
|
private final long userId;
|
|
|
|
public InviteEntry(long j, long j2, String str, long j3) {
|
|
m.checkNotNullParameter(str, "inviteCode");
|
|
this.userId = j;
|
|
this.messageId = j2;
|
|
this.inviteCode = str;
|
|
this.guildId = j3;
|
|
this.key = "24 -- " + j2 + " -- " + str;
|
|
}
|
|
|
|
public static /* synthetic */ InviteEntry copy$default(InviteEntry inviteEntry, long j, long j2, String str, long j3, int i, Object obj) {
|
|
return inviteEntry.copy((i & 1) != 0 ? inviteEntry.userId : j, (i & 2) != 0 ? inviteEntry.messageId : j2, (i & 4) != 0 ? inviteEntry.inviteCode : str, (i & 8) != 0 ? inviteEntry.guildId : j3);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.userId;
|
|
}
|
|
|
|
public final long component2() {
|
|
return this.messageId;
|
|
}
|
|
|
|
public final String component3() {
|
|
return this.inviteCode;
|
|
}
|
|
|
|
public final long component4() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final InviteEntry copy(long j, long j2, String str, long j3) {
|
|
m.checkNotNullParameter(str, "inviteCode");
|
|
return new InviteEntry(j, j2, str, j3);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof InviteEntry)) {
|
|
return false;
|
|
}
|
|
InviteEntry inviteEntry = (InviteEntry) obj;
|
|
return this.userId == inviteEntry.userId && this.messageId == inviteEntry.messageId && m.areEqual(this.inviteCode, inviteEntry.inviteCode) && this.guildId == inviteEntry.guildId;
|
|
}
|
|
|
|
public final long getGuildId() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final String getInviteCode() {
|
|
return this.inviteCode;
|
|
}
|
|
|
|
@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.messageId) + (b.a(this.userId) * 31)) * 31;
|
|
String str = this.inviteCode;
|
|
return b.a(this.guildId) + ((a + (str != null ? str.hashCode() : 0)) * 31);
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("InviteEntry(userId=");
|
|
L.append(this.userId);
|
|
L.append(", messageId=");
|
|
L.append(this.messageId);
|
|
L.append(", inviteCode=");
|
|
L.append(this.inviteCode);
|
|
L.append(", guildId=");
|
|
return a.A(L, this.guildId, ")");
|
|
}
|
|
}
|