discord-jadx/app/src/main/java/com/discord/widgets/chat/list/entries/SpotifyListenTogetherEntry....

103 lines
3.3 KiB
Java

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