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

import X.2HN;
import X.Lea;
import X.Lel;
import X.M12;
import com.bytedance.covode.number.Covode;
import java.util.List;
import java.util.Objects;

public final class DraftSavePreProcessResults {
    public final List<DraftSavePreProcessResult> blockCreativeList;
    public final List<DraftSavePreProcessResult> notBlockCreativeList;
    public final transient long preProcessDuration;

    static {
        Covode.recordClassIndex(66528);
    }

    public DraftSavePreProcessResults() {
        this(0, (List) null, (List) null, 7, (2HN) null);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_draft_model_DraftSavePreProcessResults_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(long j) {
        return (int) (j ^ (j >>> 32));
    }

    public static /* synthetic */ DraftSavePreProcessResults copy$default(DraftSavePreProcessResults draftSavePreProcessResults, long j, List<DraftSavePreProcessResult> list, List<DraftSavePreProcessResult> list2, int i, Object obj) {
        if ((i & 1) != 0) {
            j = draftSavePreProcessResults.preProcessDuration;
        }
        if ((i & 2) != 0) {
            list = draftSavePreProcessResults.blockCreativeList;
        }
        if ((i & 4) != 0) {
            list2 = draftSavePreProcessResults.notBlockCreativeList;
        }
        return draftSavePreProcessResults.copy(j, list, list2);
    }

    private Object[] getObjects() {
        return new Object[]{Long.valueOf(this.preProcessDuration), this.blockCreativeList, this.notBlockCreativeList};
    }

    public final DraftSavePreProcessResults copy(long j, List<DraftSavePreProcessResult> list, List<DraftSavePreProcessResult> list2) {
        M12.LIZ(list, list2);
        return new DraftSavePreProcessResults(j, list, list2);
    }

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

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

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

    public final List<DraftSavePreProcessResult> getBlockCreativeList() {
        return this.blockCreativeList;
    }

    public final List<DraftSavePreProcessResult> getNotBlockCreativeList() {
        return this.notBlockCreativeList;
    }

    public final long getPreProcessDuration() {
        return this.preProcessDuration;
    }

    public final boolean isSuc() {
        return this.blockCreativeList.isEmpty();
    }

    public final int getErrorCode() {
        if (isSuc()) {
            return 0;
        }
        return ((DraftSavePreProcessResult) Lea.LJII(this.blockCreativeList)).getPreProcessException().getErrorCode();
    }

    public DraftSavePreProcessResults(long j, List<DraftSavePreProcessResult> list, List<DraftSavePreProcessResult> list2) {
        M12.LIZ(list, list2);
        this.preProcessDuration = j;
        this.blockCreativeList = list;
        this.notBlockCreativeList = list2;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ DraftSavePreProcessResults(long j, Lel lel, Lel lel2, int i, 2HN r7) {
        this((i & 1) != 0 ? 0 : j, (i & 2) != 0 ? Lel.INSTANCE : lel, (i & 4) != 0 ? Lel.INSTANCE : lel2);
    }
}
