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

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.ArrayList;
import java.util.List;
import java.util.Objects;

public final class PhotoPostContent implements Parcelable {
    public static final Parcelable.Creator<PhotoPostContent> CREATOR = new Creator();
    @c(LIZ = "cover")
    public final ImagePostData imageCover;
    @c(LIZ = "images")
    public final List<ImagePostData> images;
    @c(LIZ = "music_volume")
    public final float musicVolume;
    @c(LIZ = "title")
    public final String title;

    public static class Creator implements Parcelable.Creator<PhotoPostContent> {
        static {
            Covode.recordClassIndex(111032);
        }

        public final PhotoPostContent createFromParcel(Parcel parcel) {
            M12.LIZ(parcel);
            int readInt = parcel.readInt();
            ArrayList arrayList = new ArrayList(readInt);
            while (readInt != 0) {
                arrayList.add(ImagePostData.CREATOR.createFromParcel(parcel));
                readInt--;
            }
            return new PhotoPostContent(arrayList, ImagePostData.CREATOR.createFromParcel(parcel), parcel.readFloat(), parcel.readString());
        }

        public final PhotoPostContent[] newArray(int i) {
            return new PhotoPostContent[i];
        }
    }

    static {
        Covode.recordClassIndex(111031);
    }

    public static /* synthetic */ PhotoPostContent copy$default(PhotoPostContent photoPostContent, List<ImagePostData> list, ImagePostData imagePostData, float f, String str, int i, Object obj) {
        if ((i & 1) != 0) {
            list = photoPostContent.images;
        }
        if ((i & 2) != 0) {
            imagePostData = photoPostContent.imageCover;
        }
        if ((i & 4) != 0) {
            f = photoPostContent.musicVolume;
        }
        if ((i & 8) != 0) {
            str = photoPostContent.title;
        }
        return photoPostContent.copy(list, imagePostData, f, str);
    }

    private Object[] getObjects() {
        return new Object[]{this.images, this.imageCover, Float.valueOf(this.musicVolume), this.title};
    }

    public final PhotoPostContent copy(List<ImagePostData> list, ImagePostData imagePostData, float f, String str) {
        M12.LIZ(list, imagePostData);
        return new PhotoPostContent(list, imagePostData, f, str);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        List<ImagePostData> list = this.images;
        parcel.writeInt(list.size());
        for (ImagePostData writeToParcel : list) {
            writeToParcel.writeToParcel(parcel, 0);
        }
        this.imageCover.writeToParcel(parcel, 0);
        parcel.writeFloat(this.musicVolume);
        parcel.writeString(this.title);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_model_PhotoPostContent_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(float f) {
        return Float.floatToIntBits(f);
    }

    public PhotoPostContent(List<ImagePostData> list, ImagePostData imagePostData, float f, String str) {
        M12.LIZ(list, imagePostData);
        this.images = list;
        this.imageCover = imagePostData;
        this.musicVolume = f;
        this.title = str;
    }
}
