package com.ss.android.ugc.aweme.ecommerce.review.repo.dto;

import X.CKP;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.util.List;
import java.util.Objects;

public final class ListReviewData implements Parcelable {
    public static final Parcelable.Creator<ListReviewData> CREATOR = new CKP();
    @c(LIZ = "review_items")
    public final List<ReviewItemStruct> LIZ;
    @c(LIZ = "has_more")
    public final boolean LIZIZ;
    @c(LIZ = "next_cursor")
    public final int LIZJ;
    @c(LIZ = "review_filters")
    public final List<ReviewFilterStruct> LIZLLL;
    @c(LIZ = "no_allow_feedback")
    public final Boolean LJ;
    @c(LIZ = "product_rating")
    public final Float LJFF;

    static {
        Covode.recordClassIndex(72192);
    }

    private Object[] LIZ() {
        return new Object[]{this.LIZ, Boolean.valueOf(this.LIZIZ), Integer.valueOf(this.LIZJ), this.LIZLLL, this.LJ, this.LJFF};
    }

    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ListReviewData)) {
            return false;
        }
        return M12.LIZ(((ListReviewData) obj).LIZ(), LIZ());
    }

    public final int hashCode() {
        return Objects.hash(LIZ());
    }

    public final String toString() {
        return M12.LIZ("ListReviewData:%s,%s,%s,%s,%s,%s", LIZ());
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        List<ReviewItemStruct> list = this.LIZ;
        if (list != null) {
            parcel.writeInt(1);
            parcel.writeInt(list.size());
            for (ReviewItemStruct writeToParcel : list) {
                writeToParcel.writeToParcel(parcel, 0);
            }
        } else {
            parcel.writeInt(0);
        }
        parcel.writeInt(this.LIZIZ ? 1 : 0);
        parcel.writeInt(this.LIZJ);
        List<ReviewFilterStruct> list2 = this.LIZLLL;
        if (list2 != null) {
            parcel.writeInt(1);
            parcel.writeInt(list2.size());
            for (ReviewFilterStruct writeToParcel2 : list2) {
                writeToParcel2.writeToParcel(parcel, 0);
            }
        } else {
            parcel.writeInt(0);
        }
        Boolean bool = this.LJ;
        if (bool != null) {
            parcel.writeInt(1);
            parcel.writeInt(bool.booleanValue() ? 1 : 0);
        } else {
            parcel.writeInt(0);
        }
        Float f = this.LJFF;
        if (f != null) {
            parcel.writeInt(1);
            parcel.writeFloat(f.floatValue());
            return;
        }
        parcel.writeInt(0);
    }

    public /* synthetic */ ListReviewData() {
        this((List<ReviewItemStruct>) null, false, 0, (List<ReviewFilterStruct>) null, false, (Float) null);
    }

    public ListReviewData(List<ReviewItemStruct> list, boolean z, int i, List<ReviewFilterStruct> list2, Boolean bool, Float f) {
        this.LIZ = list;
        this.LIZIZ = z;
        this.LIZJ = i;
        this.LIZLLL = list2;
        this.LJ = bool;
        this.LJFF = f;
    }
}
