package com.ss.android.ugc.aweme.ecommerce.api.model;

import X.C5343By7;
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.Objects;

public final class ExceptionUX implements Parcelable {
    public static final Parcelable.Creator<ExceptionUX> CREATOR = new C5343By7();
    @c(LIZ = "dialog_content")
    public final DialogContent dialogContent;
    @c(LIZ = "exception_ux_type")
    public final Integer exceptionUXType;
    @c(LIZ = "redirect_content")
    public final RedirectContent redirectContent;
    @c(LIZ = "render_page")
    public final Boolean renderPage;
    @c(LIZ = "toast_content")
    public final ToastContent toastContent;
    @c(LIZ = "verification_content")
    public final String verificationContent;

    static {
        Covode.recordClassIndex(68475);
    }

    public static /* synthetic */ ExceptionUX copy$default(ExceptionUX exceptionUX, Integer num, Boolean bool, DialogContent dialogContent2, ToastContent toastContent2, String str, RedirectContent redirectContent2, int i, Object obj) {
        if ((i & 1) != 0) {
            num = exceptionUX.exceptionUXType;
        }
        if ((i & 2) != 0) {
            bool = exceptionUX.renderPage;
        }
        if ((i & 4) != 0) {
            dialogContent2 = exceptionUX.dialogContent;
        }
        if ((i & 8) != 0) {
            toastContent2 = exceptionUX.toastContent;
        }
        if ((i & 16) != 0) {
            str = exceptionUX.verificationContent;
        }
        if ((i & 32) != 0) {
            redirectContent2 = exceptionUX.redirectContent;
        }
        return exceptionUX.copy(num, bool, dialogContent2, toastContent2, str, redirectContent2);
    }

    private Object[] getObjects() {
        return new Object[]{this.exceptionUXType, this.renderPage, this.dialogContent, this.toastContent, this.verificationContent, this.redirectContent};
    }

    public final ExceptionUX copy(Integer num, Boolean bool, DialogContent dialogContent2, ToastContent toastContent2, String str, RedirectContent redirectContent2) {
        return new ExceptionUX(num, bool, dialogContent2, toastContent2, str, redirectContent2);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        Integer num = this.exceptionUXType;
        if (num != null) {
            parcel.writeInt(1);
            parcel.writeInt(num.intValue());
        } else {
            parcel.writeInt(0);
        }
        Boolean bool = this.renderPage;
        if (bool != null) {
            parcel.writeInt(1);
            parcel.writeInt(bool.booleanValue() ? 1 : 0);
        } else {
            parcel.writeInt(0);
        }
        DialogContent dialogContent2 = this.dialogContent;
        if (dialogContent2 != null) {
            parcel.writeInt(1);
            dialogContent2.writeToParcel(parcel, 0);
        } else {
            parcel.writeInt(0);
        }
        ToastContent toastContent2 = this.toastContent;
        if (toastContent2 != null) {
            parcel.writeInt(1);
            toastContent2.writeToParcel(parcel, 0);
        } else {
            parcel.writeInt(0);
        }
        parcel.writeString(this.verificationContent);
        RedirectContent redirectContent2 = this.redirectContent;
        if (redirectContent2 != null) {
            parcel.writeInt(1);
            redirectContent2.writeToParcel(parcel, 0);
            return;
        }
        parcel.writeInt(0);
    }

    public final DialogContent getDialogContent() {
        return this.dialogContent;
    }

    public final Integer getExceptionUXType() {
        return this.exceptionUXType;
    }

    public final RedirectContent getRedirectContent() {
        return this.redirectContent;
    }

    public final Boolean getRenderPage() {
        return this.renderPage;
    }

    public final ToastContent getToastContent() {
        return this.toastContent;
    }

    public final String getVerificationContent() {
        return this.verificationContent;
    }

    public ExceptionUX(Integer num, Boolean bool, DialogContent dialogContent2, ToastContent toastContent2, String str, RedirectContent redirectContent2) {
        this.exceptionUXType = num;
        this.renderPage = bool;
        this.dialogContent = dialogContent2;
        this.toastContent = toastContent2;
        this.verificationContent = str;
        this.redirectContent = redirectContent2;
    }
}
