148 lines
4.8 KiB
Java
148 lines
4.8 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: StartOfPrivateChatEntry.kt */
|
|
public final class StartOfPrivateChatEntry extends ChatListEntry {
|
|
private final String channelIcon;
|
|
private final long channelId;
|
|
private final String channelName;
|
|
private final int channelType;
|
|
private final boolean isSystemDM;
|
|
private final String key;
|
|
private final int type = 29;
|
|
|
|
/* JADX DEBUG: TODO: convert one arg to string using `String.valueOf()`, args: [(wrap: int : 0x001b: INVOKE (r5v1 int) = (r1v0 'this' com.discord.widgets.chat.list.entries.StartOfPrivateChatEntry A[IMMUTABLE_TYPE, THIS]) type: VIRTUAL call: com.discord.widgets.chat.list.entries.StartOfPrivateChatEntry.getType():int), (r2v0 long)] */
|
|
public StartOfPrivateChatEntry(long j, String str, int i, String str2, boolean z2) {
|
|
m.checkNotNullParameter(str, "channelName");
|
|
this.channelId = j;
|
|
this.channelName = str;
|
|
this.channelType = i;
|
|
this.channelIcon = str2;
|
|
this.isSystemDM = z2;
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(getType());
|
|
sb.append(j);
|
|
this.key = sb.toString();
|
|
}
|
|
|
|
public static /* synthetic */ StartOfPrivateChatEntry copy$default(StartOfPrivateChatEntry startOfPrivateChatEntry, long j, String str, int i, String str2, boolean z2, int i2, Object obj) {
|
|
if ((i2 & 1) != 0) {
|
|
j = startOfPrivateChatEntry.channelId;
|
|
}
|
|
if ((i2 & 2) != 0) {
|
|
str = startOfPrivateChatEntry.channelName;
|
|
}
|
|
if ((i2 & 4) != 0) {
|
|
i = startOfPrivateChatEntry.channelType;
|
|
}
|
|
if ((i2 & 8) != 0) {
|
|
str2 = startOfPrivateChatEntry.channelIcon;
|
|
}
|
|
if ((i2 & 16) != 0) {
|
|
z2 = startOfPrivateChatEntry.isSystemDM;
|
|
}
|
|
return startOfPrivateChatEntry.copy(j, str, i, str2, z2);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.channelName;
|
|
}
|
|
|
|
public final int component3() {
|
|
return this.channelType;
|
|
}
|
|
|
|
public final String component4() {
|
|
return this.channelIcon;
|
|
}
|
|
|
|
public final boolean component5() {
|
|
return this.isSystemDM;
|
|
}
|
|
|
|
public final StartOfPrivateChatEntry copy(long j, String str, int i, String str2, boolean z2) {
|
|
m.checkNotNullParameter(str, "channelName");
|
|
return new StartOfPrivateChatEntry(j, str, i, str2, z2);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof StartOfPrivateChatEntry)) {
|
|
return false;
|
|
}
|
|
StartOfPrivateChatEntry startOfPrivateChatEntry = (StartOfPrivateChatEntry) obj;
|
|
return this.channelId == startOfPrivateChatEntry.channelId && m.areEqual(this.channelName, startOfPrivateChatEntry.channelName) && this.channelType == startOfPrivateChatEntry.channelType && m.areEqual(this.channelIcon, startOfPrivateChatEntry.channelIcon) && this.isSystemDM == startOfPrivateChatEntry.isSystemDM;
|
|
}
|
|
|
|
public final String getChannelIcon() {
|
|
return this.channelIcon;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
@Override // com.discord.utilities.mg_recycler.MGRecyclerDataPayload
|
|
public int getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int a = b.a(this.channelId) * 31;
|
|
String str = this.channelName;
|
|
int i = 0;
|
|
int hashCode = (((a + (str != null ? str.hashCode() : 0)) * 31) + this.channelType) * 31;
|
|
String str2 = this.channelIcon;
|
|
if (str2 != null) {
|
|
i = str2.hashCode();
|
|
}
|
|
int i2 = (hashCode + i) * 31;
|
|
boolean z2 = this.isSystemDM;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i3 = z2 ? 1 : 0;
|
|
int i4 = z2 ? 1 : 0;
|
|
int i5 = z2 ? 1 : 0;
|
|
return i2 + i3;
|
|
}
|
|
|
|
public final boolean isSystemDM() {
|
|
return this.isSystemDM;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("StartOfPrivateChatEntry(channelId=");
|
|
L.append(this.channelId);
|
|
L.append(", channelName=");
|
|
L.append(this.channelName);
|
|
L.append(", channelType=");
|
|
L.append(this.channelType);
|
|
L.append(", channelIcon=");
|
|
L.append(this.channelIcon);
|
|
L.append(", isSystemDM=");
|
|
return a.G(L, this.isSystemDM, ")");
|
|
}
|
|
}
|