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

123 lines
3.7 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: StickerGreetEntry.kt */
public final class StickerGreetEntry 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 = 41;
public StickerGreetEntry(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 */ StickerGreetEntry copy$default(StickerGreetEntry stickerGreetEntry, Sticker sticker, long j, String str, int i, int i2, Object obj) {
if ((i2 & 1) != 0) {
sticker = stickerGreetEntry.sticker;
}
if ((i2 & 2) != 0) {
j = stickerGreetEntry.channelId;
}
if ((i2 & 4) != 0) {
str = stickerGreetEntry.channelName;
}
if ((i2 & 8) != 0) {
i = stickerGreetEntry.channelType;
}
return stickerGreetEntry.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 StickerGreetEntry copy(Sticker sticker, long j, String str, int i) {
m.checkNotNullParameter(sticker, "sticker");
m.checkNotNullParameter(str, "channelName");
return new StickerGreetEntry(sticker, j, str, i);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof StickerGreetEntry)) {
return false;
}
StickerGreetEntry stickerGreetEntry = (StickerGreetEntry) obj;
return m.areEqual(this.sticker, stickerGreetEntry.sticker) && this.channelId == stickerGreetEntry.channelId && m.areEqual(this.channelName, stickerGreetEntry.channelName) && this.channelType == stickerGreetEntry.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("StickerGreetEntry(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, ")");
}
}