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

123 lines
3.9 KiB
Java

package com.discord.widgets.chat.list.entries;
import a0.a.a.b;
import c.d.b.a.a;
import com.discord.api.sticker.Sticker;
import d0.z.d.m;
/* compiled from: StickerGreetCompactEntry.kt */
public final class StickerGreetCompactEntry extends ChatListEntry {
private final long channelId;
private final String channelName;
private final int channelType;
private final String key;
private final Sticker sticker;
private final int type = 42;
public StickerGreetCompactEntry(Sticker sticker, long j, String str, int i) {
m.checkNotNullParameter(sticker, "sticker");
m.checkNotNullParameter(str, "channelName");
this.sticker = sticker;
this.channelId = j;
this.channelName = str;
this.channelType = i;
this.key = getType() + " -- " + sticker.getId();
}
public static /* synthetic */ StickerGreetCompactEntry copy$default(StickerGreetCompactEntry stickerGreetCompactEntry, Sticker sticker, long j, String str, int i, int i2, Object obj) {
if ((i2 & 1) != 0) {
sticker = stickerGreetCompactEntry.sticker;
}
if ((i2 & 2) != 0) {
j = stickerGreetCompactEntry.channelId;
}
if ((i2 & 4) != 0) {
str = stickerGreetCompactEntry.channelName;
}
if ((i2 & 8) != 0) {
i = stickerGreetCompactEntry.channelType;
}
return stickerGreetCompactEntry.copy(sticker, j, str, i);
}
public final Sticker component1() {
return this.sticker;
}
public final long component2() {
return this.channelId;
}
public final String component3() {
return this.channelName;
}
public final int component4() {
return this.channelType;
}
public final StickerGreetCompactEntry copy(Sticker sticker, long j, String str, int i) {
m.checkNotNullParameter(sticker, "sticker");
m.checkNotNullParameter(str, "channelName");
return new StickerGreetCompactEntry(sticker, j, str, i);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof StickerGreetCompactEntry)) {
return false;
}
StickerGreetCompactEntry stickerGreetCompactEntry = (StickerGreetCompactEntry) obj;
return m.areEqual(this.sticker, stickerGreetCompactEntry.sticker) && this.channelId == stickerGreetCompactEntry.channelId && m.areEqual(this.channelName, stickerGreetCompactEntry.channelName) && this.channelType == stickerGreetCompactEntry.channelType;
}
public final long getChannelId() {
return this.channelId;
}
public final String getChannelName() {
return this.channelName;
}
public final int getChannelType() {
return this.channelType;
}
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload, com.discord.utilities.recycler.DiffKeyProvider
public String getKey() {
return this.key;
}
public final Sticker getSticker() {
return this.sticker;
}
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload
public int getType() {
return this.type;
}
public int hashCode() {
Sticker sticker = this.sticker;
int i = 0;
int a = (b.a(this.channelId) + ((sticker != null ? sticker.hashCode() : 0) * 31)) * 31;
String str = this.channelName;
if (str != null) {
i = str.hashCode();
}
return ((a + i) * 31) + this.channelType;
}
public String toString() {
StringBuilder L = a.L("StickerGreetCompactEntry(sticker=");
L.append(this.sticker);
L.append(", channelId=");
L.append(this.channelId);
L.append(", channelName=");
L.append(this.channelName);
L.append(", channelType=");
return a.z(L, this.channelType, ")");
}
}