137 lines
4.4 KiB
Java
137 lines
4.4 KiB
Java
package com.discord.widgets.chat.input.gifpicker;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.models.gifpicker.domain.ModelGifCategory;
|
|
import com.discord.utilities.recycler.DiffKeyProvider;
|
|
import d0.z.d.m;
|
|
import java.io.Serializable;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: GifCategoryItem.kt */
|
|
public abstract class GifCategoryItem implements DiffKeyProvider, Serializable {
|
|
private final String key;
|
|
|
|
/* compiled from: GifCategoryItem.kt */
|
|
public static final class Standard extends GifCategoryItem {
|
|
private final ModelGifCategory gifCategory;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public Standard(ModelGifCategory modelGifCategory) {
|
|
super(null);
|
|
m.checkNotNullParameter(modelGifCategory, "gifCategory");
|
|
this.gifCategory = modelGifCategory;
|
|
}
|
|
|
|
public static /* synthetic */ Standard copy$default(Standard standard, ModelGifCategory modelGifCategory, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
modelGifCategory = standard.gifCategory;
|
|
}
|
|
return standard.copy(modelGifCategory);
|
|
}
|
|
|
|
public final ModelGifCategory component1() {
|
|
return this.gifCategory;
|
|
}
|
|
|
|
public final Standard copy(ModelGifCategory modelGifCategory) {
|
|
m.checkNotNullParameter(modelGifCategory, "gifCategory");
|
|
return new Standard(modelGifCategory);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this != obj) {
|
|
return (obj instanceof Standard) && m.areEqual(this.gifCategory, ((Standard) obj).gifCategory);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final ModelGifCategory getGifCategory() {
|
|
return this.gifCategory;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
ModelGifCategory modelGifCategory = this.gifCategory;
|
|
if (modelGifCategory != null) {
|
|
return modelGifCategory.hashCode();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder L = a.L("Standard(gifCategory=");
|
|
L.append(this.gifCategory);
|
|
L.append(")");
|
|
return L.toString();
|
|
}
|
|
}
|
|
|
|
/* compiled from: GifCategoryItem.kt */
|
|
public static final class Trending extends GifCategoryItem {
|
|
private final String gifPreviewUrl;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public Trending(String str) {
|
|
super(null);
|
|
m.checkNotNullParameter(str, "gifPreviewUrl");
|
|
this.gifPreviewUrl = str;
|
|
}
|
|
|
|
public static /* synthetic */ Trending copy$default(Trending trending, String str, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = trending.gifPreviewUrl;
|
|
}
|
|
return trending.copy(str);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.gifPreviewUrl;
|
|
}
|
|
|
|
public final Trending copy(String str) {
|
|
m.checkNotNullParameter(str, "gifPreviewUrl");
|
|
return new Trending(str);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this != obj) {
|
|
return (obj instanceof Trending) && m.areEqual(this.gifPreviewUrl, ((Trending) obj).gifPreviewUrl);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final String getGifPreviewUrl() {
|
|
return this.gifPreviewUrl;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
String str = this.gifPreviewUrl;
|
|
if (str != null) {
|
|
return str.hashCode();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
return a.D(a.L("Trending(gifPreviewUrl="), this.gifPreviewUrl, ")");
|
|
}
|
|
}
|
|
|
|
private GifCategoryItem() {
|
|
this.key = String.valueOf(hashCode());
|
|
}
|
|
|
|
public /* synthetic */ GifCategoryItem(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
@Override // com.discord.utilities.recycler.DiffKeyProvider
|
|
public String getKey() {
|
|
return this.key;
|
|
}
|
|
}
|