198 lines
6.9 KiB
Java
198 lines
6.9 KiB
Java
package com.discord.widgets.hubs;
|
|
|
|
import a0.a.a.b;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import b.d.b.a.a;
|
|
import d0.z.d.m;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: WidgetHubDescriptionViewModel.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class HubDescriptionArgs implements Parcelable {
|
|
public static final Parcelable.Creator<HubDescriptionArgs> CREATOR = new Creator();
|
|
private final long channelId;
|
|
private final String description;
|
|
private final long guildId;
|
|
private final String hubName;
|
|
private final boolean isEditing;
|
|
private final boolean isNewGuild;
|
|
private final Integer primaryCategoryId;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static class Creator implements Parcelable.Creator<HubDescriptionArgs> {
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public final HubDescriptionArgs createFromParcel(Parcel parcel) {
|
|
m.checkNotNullParameter(parcel, "in");
|
|
return new HubDescriptionArgs(parcel.readLong(), parcel.readLong(), parcel.readInt() != 0, parcel.readString(), parcel.readInt() != 0, parcel.readString(), parcel.readInt() != 0 ? Integer.valueOf(parcel.readInt()) : null);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public final HubDescriptionArgs[] newArray(int i) {
|
|
return new HubDescriptionArgs[i];
|
|
}
|
|
}
|
|
|
|
public HubDescriptionArgs(long j, long j2, boolean z2, String str, boolean z3, String str2, Integer num) {
|
|
m.checkNotNullParameter(str, "hubName");
|
|
this.guildId = j;
|
|
this.channelId = j2;
|
|
this.isEditing = z2;
|
|
this.hubName = str;
|
|
this.isNewGuild = z3;
|
|
this.description = str2;
|
|
this.primaryCategoryId = num;
|
|
}
|
|
|
|
public /* synthetic */ HubDescriptionArgs(long j, long j2, boolean z2, String str, boolean z3, String str2, Integer num, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(j, j2, z2, str, (i & 16) != 0 ? false : z3, (i & 32) != 0 ? null : str2, (i & 64) != 0 ? null : num);
|
|
}
|
|
|
|
public static /* synthetic */ HubDescriptionArgs copy$default(HubDescriptionArgs hubDescriptionArgs, long j, long j2, boolean z2, String str, boolean z3, String str2, Integer num, int i, Object obj) {
|
|
return hubDescriptionArgs.copy((i & 1) != 0 ? hubDescriptionArgs.guildId : j, (i & 2) != 0 ? hubDescriptionArgs.channelId : j2, (i & 4) != 0 ? hubDescriptionArgs.isEditing : z2, (i & 8) != 0 ? hubDescriptionArgs.hubName : str, (i & 16) != 0 ? hubDescriptionArgs.isNewGuild : z3, (i & 32) != 0 ? hubDescriptionArgs.description : str2, (i & 64) != 0 ? hubDescriptionArgs.primaryCategoryId : num);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final long component2() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final boolean component3() {
|
|
return this.isEditing;
|
|
}
|
|
|
|
public final String component4() {
|
|
return this.hubName;
|
|
}
|
|
|
|
public final boolean component5() {
|
|
return this.isNewGuild;
|
|
}
|
|
|
|
public final String component6() {
|
|
return this.description;
|
|
}
|
|
|
|
public final Integer component7() {
|
|
return this.primaryCategoryId;
|
|
}
|
|
|
|
public final HubDescriptionArgs copy(long j, long j2, boolean z2, String str, boolean z3, String str2, Integer num) {
|
|
m.checkNotNullParameter(str, "hubName");
|
|
return new HubDescriptionArgs(j, j2, z2, str, z3, str2, num);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof HubDescriptionArgs)) {
|
|
return false;
|
|
}
|
|
HubDescriptionArgs hubDescriptionArgs = (HubDescriptionArgs) obj;
|
|
return this.guildId == hubDescriptionArgs.guildId && this.channelId == hubDescriptionArgs.channelId && this.isEditing == hubDescriptionArgs.isEditing && m.areEqual(this.hubName, hubDescriptionArgs.hubName) && this.isNewGuild == hubDescriptionArgs.isNewGuild && m.areEqual(this.description, hubDescriptionArgs.description) && m.areEqual(this.primaryCategoryId, hubDescriptionArgs.primaryCategoryId);
|
|
}
|
|
|
|
public final long getChannelId() {
|
|
return this.channelId;
|
|
}
|
|
|
|
public final String getDescription() {
|
|
return this.description;
|
|
}
|
|
|
|
public final long getGuildId() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final String getHubName() {
|
|
return this.hubName;
|
|
}
|
|
|
|
public final Integer getPrimaryCategoryId() {
|
|
return this.primaryCategoryId;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int a = (b.a(this.channelId) + (b.a(this.guildId) * 31)) * 31;
|
|
boolean z2 = this.isEditing;
|
|
int i = 1;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i2 = z2 ? 1 : 0;
|
|
int i3 = z2 ? 1 : 0;
|
|
int i4 = z2 ? 1 : 0;
|
|
int i5 = (a + i2) * 31;
|
|
String str = this.hubName;
|
|
int i6 = 0;
|
|
int hashCode = (i5 + (str != null ? str.hashCode() : 0)) * 31;
|
|
boolean z3 = this.isNewGuild;
|
|
if (!z3) {
|
|
i = z3 ? 1 : 0;
|
|
}
|
|
int i7 = (hashCode + i) * 31;
|
|
String str2 = this.description;
|
|
int hashCode2 = (i7 + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
Integer num = this.primaryCategoryId;
|
|
if (num != null) {
|
|
i6 = num.hashCode();
|
|
}
|
|
return hashCode2 + i6;
|
|
}
|
|
|
|
public final boolean isEditing() {
|
|
return this.isEditing;
|
|
}
|
|
|
|
public final boolean isNewGuild() {
|
|
return this.isNewGuild;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("HubDescriptionArgs(guildId=");
|
|
R.append(this.guildId);
|
|
R.append(", channelId=");
|
|
R.append(this.channelId);
|
|
R.append(", isEditing=");
|
|
R.append(this.isEditing);
|
|
R.append(", hubName=");
|
|
R.append(this.hubName);
|
|
R.append(", isNewGuild=");
|
|
R.append(this.isNewGuild);
|
|
R.append(", description=");
|
|
R.append(this.description);
|
|
R.append(", primaryCategoryId=");
|
|
return a.E(R, this.primaryCategoryId, ")");
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
int i2;
|
|
m.checkNotNullParameter(parcel, "parcel");
|
|
parcel.writeLong(this.guildId);
|
|
parcel.writeLong(this.channelId);
|
|
parcel.writeInt(this.isEditing ? 1 : 0);
|
|
parcel.writeString(this.hubName);
|
|
parcel.writeInt(this.isNewGuild ? 1 : 0);
|
|
parcel.writeString(this.description);
|
|
Integer num = this.primaryCategoryId;
|
|
if (num != null) {
|
|
parcel.writeInt(1);
|
|
i2 = num.intValue();
|
|
} else {
|
|
i2 = 0;
|
|
}
|
|
parcel.writeInt(i2);
|
|
}
|
|
}
|