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

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

public final class DraftDBDeleteResult {
    public final DraftDBDeleteException deleteException;

    static {
        Covode.recordClassIndex(66509);
    }

    public DraftDBDeleteResult() {
        this((DraftDBDeleteException) null, 1, (2HN) null);
    }

    public static /* synthetic */ DraftDBDeleteResult copy$default(DraftDBDeleteResult draftDBDeleteResult, DraftDBDeleteException draftDBDeleteException, int i, Object obj) {
        if ((i & 1) != 0) {
            draftDBDeleteException = draftDBDeleteResult.deleteException;
        }
        return draftDBDeleteResult.copy(draftDBDeleteException);
    }

    private Object[] getObjects() {
        return new Object[]{this.deleteException};
    }

    public final DraftDBDeleteResult copy(DraftDBDeleteException draftDBDeleteException) {
        M12.LIZ(draftDBDeleteException);
        return new DraftDBDeleteResult(draftDBDeleteException);
    }

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

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

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

    public final DraftDBDeleteException getDeleteException() {
        return this.deleteException;
    }

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

    public DraftDBDeleteResult(DraftDBDeleteException draftDBDeleteException) {
        M12.LIZ(draftDBDeleteException);
        this.deleteException = draftDBDeleteException;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ DraftDBDeleteResult(DraftDBDeleteException draftDBDeleteException, int i, 2HN r6) {
        this((i & 1) != 0 ? new DraftDBDeleteException(0, (Throwable) null, 3, (2HN) null) : draftDBDeleteException);
    }
}
