package com.discord.utilities.lazy.memberlist; import a0.a.a.b; import androidx.annotation.ColorInt; import c.d.b.a.a; import com.discord.models.domain.ModelAuditLogEntry; import com.discord.models.presence.Presence; import d0.z.d.m; import kotlin.jvm.internal.DefaultConstructorMarker; /* compiled from: MemberListRow.kt */ public abstract class MemberListRow { private final String rowId; /* compiled from: MemberListRow.kt */ public static final class Member extends MemberListRow { private final String avatarUrl; private final Integer color; private final boolean isApplicationStreaming; private final boolean isBot; private final String name; private final String premiumSince; private final Presence presence; private final boolean showOwnerIndicator; private final Integer tagText; private final boolean tagVerified; private final int userFlags; private final long userId; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public Member(long j, String str, boolean z2, Integer num, boolean z3, Presence presence, @ColorInt Integer num2, String str2, boolean z4, String str3, boolean z5, int i) { super(String.valueOf(j), null); m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME); this.userId = j; this.name = str; this.isBot = z2; this.tagText = num; this.tagVerified = z3; this.presence = presence; this.color = num2; this.avatarUrl = str2; this.showOwnerIndicator = z4; this.premiumSince = str3; this.isApplicationStreaming = z5; this.userFlags = i; } public static /* synthetic */ Member copy$default(Member member, long j, String str, boolean z2, Integer num, boolean z3, Presence presence, Integer num2, String str2, boolean z4, String str3, boolean z5, int i, int i2, Object obj) { return member.copy((i2 & 1) != 0 ? member.userId : j, (i2 & 2) != 0 ? member.name : str, (i2 & 4) != 0 ? member.isBot : z2, (i2 & 8) != 0 ? member.tagText : num, (i2 & 16) != 0 ? member.tagVerified : z3, (i2 & 32) != 0 ? member.presence : presence, (i2 & 64) != 0 ? member.color : num2, (i2 & 128) != 0 ? member.avatarUrl : str2, (i2 & 256) != 0 ? member.showOwnerIndicator : z4, (i2 & 512) != 0 ? member.premiumSince : str3, (i2 & 1024) != 0 ? member.isApplicationStreaming : z5, (i2 & 2048) != 0 ? member.userFlags : i); } public final long component1() { return this.userId; } public final String component10() { return this.premiumSince; } public final boolean component11() { return this.isApplicationStreaming; } public final int component12() { return this.userFlags; } public final String component2() { return this.name; } public final boolean component3() { return this.isBot; } public final Integer component4() { return this.tagText; } public final boolean component5() { return this.tagVerified; } public final Presence component6() { return this.presence; } public final Integer component7() { return this.color; } public final String component8() { return this.avatarUrl; } public final boolean component9() { return this.showOwnerIndicator; } public final Member copy(long j, String str, boolean z2, Integer num, boolean z3, Presence presence, @ColorInt Integer num2, String str2, boolean z4, String str3, boolean z5, int i) { m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME); return new Member(j, str, z2, num, z3, presence, num2, str2, z4, str3, z5, i); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof Member)) { return false; } Member member = (Member) obj; return this.userId == member.userId && m.areEqual(this.name, member.name) && this.isBot == member.isBot && m.areEqual(this.tagText, member.tagText) && this.tagVerified == member.tagVerified && m.areEqual(this.presence, member.presence) && m.areEqual(this.color, member.color) && m.areEqual(this.avatarUrl, member.avatarUrl) && this.showOwnerIndicator == member.showOwnerIndicator && m.areEqual(this.premiumSince, member.premiumSince) && this.isApplicationStreaming == member.isApplicationStreaming && this.userFlags == member.userFlags; } public final String getAvatarUrl() { return this.avatarUrl; } public final Integer getColor() { return this.color; } public final String getName() { return this.name; } public final String getPremiumSince() { return this.premiumSince; } public final Presence getPresence() { return this.presence; } public final boolean getShowOwnerIndicator() { return this.showOwnerIndicator; } public final Integer getTagText() { return this.tagText; } public final boolean getTagVerified() { return this.tagVerified; } public final int getUserFlags() { return this.userFlags; } public final long getUserId() { return this.userId; } public int hashCode() { int a = b.a(this.userId) * 31; String str = this.name; int i = 0; int hashCode = (a + (str != null ? str.hashCode() : 0)) * 31; boolean z2 = this.isBot; int i2 = 1; if (z2) { z2 = true; } int i3 = z2 ? 1 : 0; int i4 = z2 ? 1 : 0; int i5 = z2 ? 1 : 0; int i6 = (hashCode + i3) * 31; Integer num = this.tagText; int hashCode2 = (i6 + (num != null ? num.hashCode() : 0)) * 31; boolean z3 = this.tagVerified; if (z3) { z3 = true; } int i7 = z3 ? 1 : 0; int i8 = z3 ? 1 : 0; int i9 = z3 ? 1 : 0; int i10 = (hashCode2 + i7) * 31; Presence presence = this.presence; int hashCode3 = (i10 + (presence != null ? presence.hashCode() : 0)) * 31; Integer num2 = this.color; int hashCode4 = (hashCode3 + (num2 != null ? num2.hashCode() : 0)) * 31; String str2 = this.avatarUrl; int hashCode5 = (hashCode4 + (str2 != null ? str2.hashCode() : 0)) * 31; boolean z4 = this.showOwnerIndicator; if (z4) { z4 = true; } int i11 = z4 ? 1 : 0; int i12 = z4 ? 1 : 0; int i13 = z4 ? 1 : 0; int i14 = (hashCode5 + i11) * 31; String str3 = this.premiumSince; if (str3 != null) { i = str3.hashCode(); } int i15 = (i14 + i) * 31; boolean z5 = this.isApplicationStreaming; if (!z5) { i2 = z5 ? 1 : 0; } return ((i15 + i2) * 31) + this.userFlags; } public final boolean isApplicationStreaming() { return this.isApplicationStreaming; } public final boolean isBot() { return this.isBot; } public String toString() { StringBuilder R = a.R("Member(userId="); R.append(this.userId); R.append(", name="); R.append(this.name); R.append(", isBot="); R.append(this.isBot); R.append(", tagText="); R.append(this.tagText); R.append(", tagVerified="); R.append(this.tagVerified); R.append(", presence="); R.append(this.presence); R.append(", color="); R.append(this.color); R.append(", avatarUrl="); R.append(this.avatarUrl); R.append(", showOwnerIndicator="); R.append(this.showOwnerIndicator); R.append(", premiumSince="); R.append(this.premiumSince); R.append(", isApplicationStreaming="); R.append(this.isApplicationStreaming); R.append(", userFlags="); return a.A(R, this.userFlags, ")"); } } /* compiled from: MemberListRow.kt */ public static final class RoleHeader extends MemberListRow { private final int memberCount; private final long roleId; private final String roleName; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public RoleHeader(long j, String str, int i) { super(String.valueOf(j), null); m.checkNotNullParameter(str, "roleName"); this.roleId = j; this.roleName = str; this.memberCount = i; } public static /* synthetic */ RoleHeader copy$default(RoleHeader roleHeader, long j, String str, int i, int i2, Object obj) { if ((i2 & 1) != 0) { j = roleHeader.roleId; } if ((i2 & 2) != 0) { str = roleHeader.roleName; } if ((i2 & 4) != 0) { i = roleHeader.memberCount; } return roleHeader.copy(j, str, i); } public final long component1() { return this.roleId; } public final String component2() { return this.roleName; } public final int component3() { return this.memberCount; } public final RoleHeader copy(long j, String str, int i) { m.checkNotNullParameter(str, "roleName"); return new RoleHeader(j, str, i); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof RoleHeader)) { return false; } RoleHeader roleHeader = (RoleHeader) obj; return this.roleId == roleHeader.roleId && m.areEqual(this.roleName, roleHeader.roleName) && this.memberCount == roleHeader.memberCount; } public final int getMemberCount() { return this.memberCount; } public final long getRoleId() { return this.roleId; } public final String getRoleName() { return this.roleName; } public int hashCode() { int a = b.a(this.roleId) * 31; String str = this.roleName; return ((a + (str != null ? str.hashCode() : 0)) * 31) + this.memberCount; } public String toString() { StringBuilder R = a.R("RoleHeader(roleId="); R.append(this.roleId); R.append(", roleName="); R.append(this.roleName); R.append(", memberCount="); return a.A(R, this.memberCount, ")"); } } /* compiled from: MemberListRow.kt */ public static final class StatusHeader extends MemberListRow { private final int memberCount; private final String rowId; private final Type type; /* compiled from: MemberListRow.kt */ public enum Type { ONLINE(0), OFFLINE(1); /* renamed from: id reason: collision with root package name */ private final long f2230id; private Type(long j) { this.f2230id = j; } public final long getId() { return this.f2230id; } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StatusHeader(String str, Type type, int i) { super(str, null); m.checkNotNullParameter(str, "rowId"); m.checkNotNullParameter(type, "type"); this.rowId = str; this.type = type; this.memberCount = i; } public static /* synthetic */ StatusHeader copy$default(StatusHeader statusHeader, String str, Type type, int i, int i2, Object obj) { if ((i2 & 1) != 0) { str = statusHeader.getRowId(); } if ((i2 & 2) != 0) { type = statusHeader.type; } if ((i2 & 4) != 0) { i = statusHeader.memberCount; } return statusHeader.copy(str, type, i); } public final String component1() { return getRowId(); } public final Type component2() { return this.type; } public final int component3() { return this.memberCount; } public final StatusHeader copy(String str, Type type, int i) { m.checkNotNullParameter(str, "rowId"); m.checkNotNullParameter(type, "type"); return new StatusHeader(str, type, i); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof StatusHeader)) { return false; } StatusHeader statusHeader = (StatusHeader) obj; return m.areEqual(getRowId(), statusHeader.getRowId()) && m.areEqual(this.type, statusHeader.type) && this.memberCount == statusHeader.memberCount; } public final int getMemberCount() { return this.memberCount; } @Override // com.discord.utilities.lazy.memberlist.MemberListRow public String getRowId() { return this.rowId; } public final Type getType() { return this.type; } public int hashCode() { String rowId = getRowId(); int i = 0; int hashCode = (rowId != null ? rowId.hashCode() : 0) * 31; Type type = this.type; if (type != null) { i = type.hashCode(); } return ((hashCode + i) * 31) + this.memberCount; } public String toString() { StringBuilder R = a.R("StatusHeader(rowId="); R.append(getRowId()); R.append(", type="); R.append(this.type); R.append(", memberCount="); return a.A(R, this.memberCount, ")"); } } private MemberListRow(String str) { this.rowId = str; } public /* synthetic */ MemberListRow(String str, DefaultConstructorMarker defaultConstructorMarker) { this(str); } public String getRowId() { return this.rowId; } }