package com.ss.android.ugc.aweme.api.model;

import X.Fg2;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;

public final class AnchorCell implements Parcelable {
    public static final Parcelable.Creator<AnchorCell> CREATOR = new Fg2();
    @c(LIZ = "id")
    public String LIZ;
    @c(LIZ = "icon")
    public AnchorIcon LIZIZ;
    @c(LIZ = "title")
    public String LIZJ;
    @c(LIZ = "sub_title")
    public String LIZLLL;
    @c(LIZ = "schema_url")
    public String LJ;
    @c(LIZ = "extra")
    public String LJFF;
    public int LJI;
    public boolean LJII;

    static {
        Covode.recordClassIndex(53057);
    }

    public final int describeContents() {
        return 0;
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeString(this.LIZ);
        AnchorIcon anchorIcon = this.LIZIZ;
        if (anchorIcon != null) {
            parcel.writeInt(1);
            anchorIcon.writeToParcel(parcel, 0);
        } else {
            parcel.writeInt(0);
        }
        parcel.writeString(this.LIZJ);
        parcel.writeString(this.LIZLLL);
        parcel.writeString(this.LJ);
        parcel.writeString(this.LJFF);
        parcel.writeInt(this.LJI);
        parcel.writeInt(this.LJII ? 1 : 0);
    }

    public /* synthetic */ AnchorCell() {
        this((String) null, (AnchorIcon) null, (String) null, (String) null, (String) null, (String) null, -100, false);
    }

    public final int hashCode() {
        String str = this.LIZ;
        if (str == null) {
            str = "";
        }
        return Integer.valueOf(str).intValue();
    }

    public final boolean equals(Object obj) {
        if (obj instanceof AnchorCell) {
            return TextUtils.equals(this.LIZ, ((AnchorCell) obj).LIZ);
        }
        return false;
    }

    public AnchorCell(String str, AnchorIcon anchorIcon, String str2, String str3, String str4, String str5, int i, boolean z) {
        this.LIZ = str;
        this.LIZIZ = anchorIcon;
        this.LIZJ = str2;
        this.LIZLLL = str3;
        this.LJ = str4;
        this.LJFF = str5;
        this.LJI = i;
        this.LJII = z;
    }
}
