104 lines
3.1 KiB
Java
104 lines
3.1 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;
|
|
/* compiled from: WidgetHubDescription.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class DescriptionResult implements Parcelable {
|
|
public static final Parcelable.Creator<DescriptionResult> CREATOR = new Creator();
|
|
private final long guildId;
|
|
private final String hubName;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static class Creator implements Parcelable.Creator<DescriptionResult> {
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public final DescriptionResult createFromParcel(Parcel parcel) {
|
|
m.checkNotNullParameter(parcel, "in");
|
|
return new DescriptionResult(parcel.readLong(), parcel.readString());
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public final DescriptionResult[] newArray(int i) {
|
|
return new DescriptionResult[i];
|
|
}
|
|
}
|
|
|
|
public DescriptionResult(long j, String str) {
|
|
m.checkNotNullParameter(str, "hubName");
|
|
this.guildId = j;
|
|
this.hubName = str;
|
|
}
|
|
|
|
public static /* synthetic */ DescriptionResult copy$default(DescriptionResult descriptionResult, long j, String str, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
j = descriptionResult.guildId;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
str = descriptionResult.hubName;
|
|
}
|
|
return descriptionResult.copy(j, str);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.hubName;
|
|
}
|
|
|
|
public final DescriptionResult copy(long j, String str) {
|
|
m.checkNotNullParameter(str, "hubName");
|
|
return new DescriptionResult(j, str);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof DescriptionResult)) {
|
|
return false;
|
|
}
|
|
DescriptionResult descriptionResult = (DescriptionResult) obj;
|
|
return this.guildId == descriptionResult.guildId && m.areEqual(this.hubName, descriptionResult.hubName);
|
|
}
|
|
|
|
public final long getGuildId() {
|
|
return this.guildId;
|
|
}
|
|
|
|
public final String getHubName() {
|
|
return this.hubName;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int a = b.a(this.guildId) * 31;
|
|
String str = this.hubName;
|
|
return a + (str != null ? str.hashCode() : 0);
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("DescriptionResult(guildId=");
|
|
R.append(this.guildId);
|
|
R.append(", hubName=");
|
|
return a.H(R, this.hubName, ")");
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
m.checkNotNullParameter(parcel, "parcel");
|
|
parcel.writeLong(this.guildId);
|
|
parcel.writeString(this.hubName);
|
|
}
|
|
}
|