2021-08-20 05:39:29 +00:00
|
|
|
package com.discord.widgets.directories;
|
|
|
|
|
|
|
|
import android.os.Parcel;
|
|
|
|
import android.os.Parcelable;
|
|
|
|
import c.d.b.a.a;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
2021-08-20 05:39:29 +00:00
|
|
|
import com.discord.models.hubs.DirectoryEntryCategory;
|
|
|
|
/* compiled from: WidgetDirectoryCategory.kt */
|
|
|
|
public final class DirectoryCategoryArgs implements Parcelable {
|
|
|
|
public static final Parcelable.Creator<DirectoryCategoryArgs> CREATOR = new Creator();
|
|
|
|
private final DirectoryEntryCategory directoryCategory;
|
|
|
|
|
|
|
|
public static class Creator implements Parcelable.Creator<DirectoryCategoryArgs> {
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
|
|
public final DirectoryCategoryArgs createFromParcel(Parcel parcel) {
|
|
|
|
m.checkNotNullParameter(parcel, "in");
|
|
|
|
return new DirectoryCategoryArgs((DirectoryEntryCategory) Enum.valueOf(DirectoryEntryCategory.class, parcel.readString()));
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
|
|
public final DirectoryCategoryArgs[] newArray(int i) {
|
|
|
|
return new DirectoryCategoryArgs[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public DirectoryCategoryArgs(DirectoryEntryCategory directoryEntryCategory) {
|
|
|
|
m.checkNotNullParameter(directoryEntryCategory, "directoryCategory");
|
|
|
|
this.directoryCategory = directoryEntryCategory;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static /* synthetic */ DirectoryCategoryArgs copy$default(DirectoryCategoryArgs directoryCategoryArgs, DirectoryEntryCategory directoryEntryCategory, int i, Object obj) {
|
|
|
|
if ((i & 1) != 0) {
|
|
|
|
directoryEntryCategory = directoryCategoryArgs.directoryCategory;
|
|
|
|
}
|
|
|
|
return directoryCategoryArgs.copy(directoryEntryCategory);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final DirectoryEntryCategory component1() {
|
|
|
|
return this.directoryCategory;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final DirectoryCategoryArgs copy(DirectoryEntryCategory directoryEntryCategory) {
|
|
|
|
m.checkNotNullParameter(directoryEntryCategory, "directoryCategory");
|
|
|
|
return new DirectoryCategoryArgs(directoryEntryCategory);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.os.Parcelable
|
|
|
|
public int describeContents() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // java.lang.Object
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (this != obj) {
|
|
|
|
return (obj instanceof DirectoryCategoryArgs) && m.areEqual(this.directoryCategory, ((DirectoryCategoryArgs) obj).directoryCategory);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final DirectoryEntryCategory getDirectoryCategory() {
|
|
|
|
return this.directoryCategory;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // java.lang.Object
|
|
|
|
public int hashCode() {
|
|
|
|
DirectoryEntryCategory directoryEntryCategory = this.directoryCategory;
|
|
|
|
if (directoryEntryCategory != null) {
|
|
|
|
return directoryEntryCategory.hashCode();
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // java.lang.Object
|
|
|
|
public String toString() {
|
2021-10-09 06:29:02 +00:00
|
|
|
StringBuilder O = a.O("DirectoryCategoryArgs(directoryCategory=");
|
|
|
|
O.append(this.directoryCategory);
|
|
|
|
O.append(")");
|
|
|
|
return O.toString();
|
2021-08-20 05:39:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.os.Parcelable
|
|
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
|
|
m.checkNotNullParameter(parcel, "parcel");
|
|
|
|
parcel.writeString(this.directoryCategory.name());
|
|
|
|
}
|
|
|
|
}
|