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