package com.ss.android.ugc.aweme.publish.privacy;

import X.2HN;
import X.FVM;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import java.io.Serializable;
import java.util.Objects;

public final class PostBtnConfigure implements Parcelable, Serializable {
    public static final Parcelable.Creator<PostBtnConfigure> CREATOR = new FVM();
    public final String btnText;
    public final boolean enable;

    static {
        Covode.recordClassIndex(101271);
    }

    public PostBtnConfigure() {
        this(false, (String) null, 3, (2HN) null);
    }

    private Object[] LIZ() {
        return new Object[]{Boolean.valueOf(this.enable), this.btnText};
    }

    public static /* synthetic */ PostBtnConfigure copy$default(PostBtnConfigure postBtnConfigure, boolean z, String str, int i, Object obj) {
        if ((i & 1) != 0) {
            z = postBtnConfigure.enable;
        }
        if ((i & 2) != 0) {
            str = postBtnConfigure.btnText;
        }
        return postBtnConfigure.copy(z, str);
    }

    public final PostBtnConfigure copy(boolean z, String str) {
        M12.LIZ(str);
        return new PostBtnConfigure(z, str);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeInt(this.enable ? 1 : 0);
        parcel.writeString(this.btnText);
    }

    public final String getBtnText() {
        return this.btnText;
    }

    public final boolean getEnable() {
        return this.enable;
    }

    public PostBtnConfigure(boolean z, String str) {
        M12.LIZ(str);
        this.enable = z;
        this.btnText = str;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ PostBtnConfigure(boolean z, String str, int i, 2HN r5) {
        this((i & 1) != 0 ? true : z, (i & 2) != 0 ? "" : str);
    }
}
