package com.ss.android.ugc.aweme.ecommerce.pdp.repository.dto;

import X.CMZ;
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.Map;
import java.util.Objects;

public final class RecommendInfo implements Parcelable {
    public static final Parcelable.Creator<RecommendInfo> CREATOR = new CMZ();
    @c(LIZ = "recommend_products")
    public final List<ProductBase> LIZ;
    @c(LIZ = "recommend_title")
    public final String LIZIZ;
    @c(LIZ = "recommend_extra")
    public final Map<String, String> LIZJ;
    @c(LIZ = "full_vap_schema")
    public String LIZLLL;
    @c(LIZ = "vap_schema")
    public String LJ;

    static {
        Covode.recordClassIndex(71530);
    }

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

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        List<ProductBase> list = this.LIZ;
        if (list != null) {
            parcel.writeInt(1);
            parcel.writeInt(list.size());
            for (ProductBase writeToParcel : list) {
                writeToParcel.writeToParcel(parcel, 0);
            }
        } else {
            parcel.writeInt(0);
        }
        parcel.writeString(this.LIZIZ);
        Map<String, String> map = this.LIZJ;
        if (map != null) {
            parcel.writeInt(1);
            parcel.writeInt(map.size());
            for (Map.Entry<String, String> next : map.entrySet()) {
                parcel.writeString(next.getKey());
                parcel.writeString(next.getValue());
            }
        } else {
            parcel.writeInt(0);
        }
        parcel.writeString(this.LIZLLL);
        parcel.writeString(this.LJ);
    }

    public RecommendInfo(List<ProductBase> list, String str, Map<String, String> map, String str2, String str3) {
        this.LIZ = list;
        this.LIZIZ = str;
        this.LIZJ = map;
        this.LIZLLL = str2;
        this.LJ = str3;
    }
}
