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 DraftFileCheckResults {
    public final List<DraftFileCheckResult> blockCreativeList;
    public final List<DraftFileCheckResult> notBlockCreativeList;

    static {
        Covode.recordClassIndex(66516);
    }

    public DraftFileCheckResults() {
        this((List) null, (List) null, 3, (2HN) null);
    }

    public static /* synthetic */ DraftFileCheckResults copy$default(DraftFileCheckResults draftFileCheckResults, List<DraftFileCheckResult> list, List<DraftFileCheckResult> list2, int i, Object obj) {
        if ((i & 1) != 0) {
            list = draftFileCheckResults.blockCreativeList;
        }
        if ((i & 2) != 0) {
            list2 = draftFileCheckResults.notBlockCreativeList;
        }
        return draftFileCheckResults.copy(list, list2);
    }

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

    public final DraftFileCheckResults copy(List<DraftFileCheckResult> list, List<DraftFileCheckResult> list2) {
        M12.LIZ(list, list2);
        return new DraftFileCheckResults(list, list2);
    }

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

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

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

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

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

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

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

    public DraftFileCheckResults(List<DraftFileCheckResult> list, List<DraftFileCheckResult> list2) {
        M12.LIZ(list, list2);
        this.blockCreativeList = list;
        this.notBlockCreativeList = list2;
    }

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