126 lines
4 KiB
Java
126 lines
4 KiB
Java
package com.discord.widgets.chat.list.entries;
|
|
|
|
import a0.a.a.b;
|
|
import c.d.b.a.a;
|
|
import com.discord.api.application.Application;
|
|
import com.discord.api.message.activity.MessageActivity;
|
|
import d0.z.d.m;
|
|
/* compiled from: GameInviteEntry.kt */
|
|
public final class GameInviteEntry extends ChatListEntry {
|
|
private final MessageActivity activity;
|
|
private final Application application;
|
|
private final long authorId;
|
|
private final String key;
|
|
private final long messageId;
|
|
private final int type = 22;
|
|
|
|
public GameInviteEntry(long j, long j2, MessageActivity messageActivity, Application application) {
|
|
m.checkNotNullParameter(messageActivity, "activity");
|
|
m.checkNotNullParameter(application, "application");
|
|
this.authorId = j;
|
|
this.messageId = j2;
|
|
this.activity = messageActivity;
|
|
this.application = application;
|
|
this.key = a.q("22 -- ", j2);
|
|
}
|
|
|
|
public static /* synthetic */ GameInviteEntry copy$default(GameInviteEntry gameInviteEntry, long j, long j2, MessageActivity messageActivity, Application application, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
j = gameInviteEntry.authorId;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
j2 = gameInviteEntry.messageId;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
messageActivity = gameInviteEntry.activity;
|
|
}
|
|
if ((i & 8) != 0) {
|
|
application = gameInviteEntry.application;
|
|
}
|
|
return gameInviteEntry.copy(j, j2, messageActivity, application);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.authorId;
|
|
}
|
|
|
|
public final long component2() {
|
|
return this.messageId;
|
|
}
|
|
|
|
public final MessageActivity component3() {
|
|
return this.activity;
|
|
}
|
|
|
|
public final Application component4() {
|
|
return this.application;
|
|
}
|
|
|
|
public final GameInviteEntry copy(long j, long j2, MessageActivity messageActivity, Application application) {
|
|
m.checkNotNullParameter(messageActivity, "activity");
|
|
m.checkNotNullParameter(application, "application");
|
|
return new GameInviteEntry(j, j2, messageActivity, application);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof GameInviteEntry)) {
|
|
return false;
|
|
}
|
|
GameInviteEntry gameInviteEntry = (GameInviteEntry) obj;
|
|
return this.authorId == gameInviteEntry.authorId && this.messageId == gameInviteEntry.messageId && m.areEqual(this.activity, gameInviteEntry.activity) && m.areEqual(this.application, gameInviteEntry.application);
|
|
}
|
|
|
|
public final MessageActivity getActivity() {
|
|
return this.activity;
|
|
}
|
|
|
|
public final Application getApplication() {
|
|
return this.application;
|
|
}
|
|
|
|
public final long getAuthorId() {
|
|
return this.authorId;
|
|
}
|
|
|
|
@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() {
|
|
int a = (b.a(this.messageId) + (b.a(this.authorId) * 31)) * 31;
|
|
MessageActivity messageActivity = this.activity;
|
|
int i = 0;
|
|
int hashCode = (a + (messageActivity != null ? messageActivity.hashCode() : 0)) * 31;
|
|
Application application = this.application;
|
|
if (application != null) {
|
|
i = application.hashCode();
|
|
}
|
|
return hashCode + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("GameInviteEntry(authorId=");
|
|
L.append(this.authorId);
|
|
L.append(", messageId=");
|
|
L.append(this.messageId);
|
|
L.append(", activity=");
|
|
L.append(this.activity);
|
|
L.append(", application=");
|
|
L.append(this.application);
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|