124 lines
4.0 KiB
Java
124 lines
4.0 KiB
Java
package com.discord.widgets.chat.list.entries;
|
|
|
|
import a0.a.a.b;
|
|
import c.d.b.a.a;
|
|
import com.discord.models.domain.ModelInvite;
|
|
import d0.z.d.m;
|
|
/* compiled from: StageInviteEntry.kt */
|
|
public final class StageInviteEntry extends ChatListEntry {
|
|
private final long guildId;
|
|
private final ModelInvite invite;
|
|
private final String inviteCode;
|
|
private final String key;
|
|
private final long messageId;
|
|
private final int type = 39;
|
|
private final long userId;
|
|
|
|
public StageInviteEntry(long j, long j2, String str, ModelInvite modelInvite, long j3) {
|
|
m.checkNotNullParameter(str, "inviteCode");
|
|
m.checkNotNullParameter(modelInvite, "invite");
|
|
this.userId = j;
|
|
this.messageId = j2;
|
|
this.inviteCode = str;
|
|
this.invite = modelInvite;
|
|
this.guildId = j3;
|
|
this.key = "39 -- " + j2 + " -- " + str;
|
|
}
|
|
|
|
public static /* synthetic */ StageInviteEntry copy$default(StageInviteEntry stageInviteEntry, long j, long j2, String str, ModelInvite modelInvite, long j3, int i, Object obj) {
|
|
return stageInviteEntry.copy((i & 1) != 0 ? stageInviteEntry.userId : j, (i & 2) != 0 ? stageInviteEntry.messageId : j2, (i & 4) != 0 ? stageInviteEntry.inviteCode : str, (i & 8) != 0 ? stageInviteEntry.invite : modelInvite, (i & 16) != 0 ? stageInviteEntry.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 ModelInvite component4() {
|
|
return this.invite;
|
|
}
|
|
|
|
public final long component5() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final StageInviteEntry copy(long j, long j2, String str, ModelInvite modelInvite, long j3) {
|
|
m.checkNotNullParameter(str, "inviteCode");
|
|
m.checkNotNullParameter(modelInvite, "invite");
|
|
return new StageInviteEntry(j, j2, str, modelInvite, j3);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof StageInviteEntry)) {
|
|
return false;
|
|
}
|
|
StageInviteEntry stageInviteEntry = (StageInviteEntry) obj;
|
|
return this.userId == stageInviteEntry.userId && this.messageId == stageInviteEntry.messageId && m.areEqual(this.inviteCode, stageInviteEntry.inviteCode) && m.areEqual(this.invite, stageInviteEntry.invite) && this.guildId == stageInviteEntry.guildId;
|
|
}
|
|
|
|
public final long getGuildId() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final ModelInvite getInvite() {
|
|
return this.invite;
|
|
}
|
|
|
|
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;
|
|
int i = 0;
|
|
int hashCode = (a + (str != null ? str.hashCode() : 0)) * 31;
|
|
ModelInvite modelInvite = this.invite;
|
|
if (modelInvite != null) {
|
|
i = modelInvite.hashCode();
|
|
}
|
|
return b.a(this.guildId) + ((hashCode + i) * 31);
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("StageInviteEntry(userId=");
|
|
L.append(this.userId);
|
|
L.append(", messageId=");
|
|
L.append(this.messageId);
|
|
L.append(", inviteCode=");
|
|
L.append(this.inviteCode);
|
|
L.append(", invite=");
|
|
L.append(this.invite);
|
|
L.append(", guildId=");
|
|
return a.A(L, this.guildId, ")");
|
|
}
|
|
}
|