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 DraftFileSaveResult {
    public final DraftFileSaveException saveException;
    public final int saveType;

    static {
        Covode.recordClassIndex(66523);
    }

    public DraftFileSaveResult() {
        this(0, (DraftFileSaveException) null, 3, (2HN) null);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_draft_model_DraftFileSaveResult_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
        return i;
    }

    public static /* synthetic */ DraftFileSaveResult copy$default(DraftFileSaveResult draftFileSaveResult, int i, DraftFileSaveException draftFileSaveException, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            i = draftFileSaveResult.saveType;
        }
        if ((i2 & 2) != 0) {
            draftFileSaveException = draftFileSaveResult.saveException;
        }
        return draftFileSaveResult.copy(i, draftFileSaveException);
    }

    private Object[] getObjects() {
        return new Object[]{Integer.valueOf(this.saveType), this.saveException};
    }

    public final DraftFileSaveResult copy(int i, DraftFileSaveException draftFileSaveException) {
        M12.LIZ(draftFileSaveException);
        return new DraftFileSaveResult(i, draftFileSaveException);
    }

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

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

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

    public final DraftFileSaveException getSaveException() {
        return this.saveException;
    }

    public final int getSaveType() {
        return this.saveType;
    }

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

    public DraftFileSaveResult(int i, DraftFileSaveException draftFileSaveException) {
        M12.LIZ(draftFileSaveException);
        this.saveType = i;
        this.saveException = draftFileSaveException;
    }

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