package com.ss.android.ugc.aweme.common;

import X.2HN;
import X.AnonymousClass6KP;
import X.AnonymousClass6KQ;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import com.ss.android.ugc.effectmanager.effect.model.Effect;
import java.io.Serializable;
import java.util.Objects;

public final class ShareKitPanel implements Parcelable, Serializable {
    public static final Parcelable.Creator<ShareKitPanel> CREATOR = new AnonymousClass6KP();
    public static final AnonymousClass6KQ Companion = new AnonymousClass6KQ((byte) 0);
    public static final long serialVersionUID = -9;
    @c(LIZ = "clientKey")
    public String clientKey;
    @c(LIZ = "effect_resource_id")
    public String effectResourceId;
    @c(LIZ = "share_media_type")
    public Integer shareMediaType;
    @c(LIZ = "share_panel_effect")
    public Effect sharePanelEffect;
    @c(LIZ = "share_panel_option")
    public String sharePanelOption;

    static {
        Covode.recordClassIndex(60229);
    }

    public ShareKitPanel() {
        this((Effect) null, (String) null, (String) null, (Integer) null, (String) null, 31, (2HN) null);
    }

    public ShareKitPanel(Effect effect) {
        this(effect, (String) null, (String) null, (Integer) null, (String) null, 30, (2HN) null);
    }

    public ShareKitPanel(Effect effect, String str) {
        this(effect, str, (String) null, (Integer) null, (String) null, 28, (2HN) null);
    }

    public ShareKitPanel(Effect effect, String str, String str2) {
        this(effect, str, str2, (Integer) null, (String) null, 24, (2HN) null);
    }

    public ShareKitPanel(Effect effect, String str, String str2, Integer num) {
        this(effect, str, str2, num, (String) null, 16, (2HN) null);
    }

    private Object[] LIZ() {
        return new Object[]{this.sharePanelEffect, this.sharePanelOption, this.effectResourceId, this.shareMediaType, this.clientKey};
    }

    public static /* synthetic */ ShareKitPanel copy$default(ShareKitPanel shareKitPanel, Effect effect, String str, String str2, Integer num, String str3, int i, Object obj) {
        if ((i & 1) != 0) {
            effect = shareKitPanel.sharePanelEffect;
        }
        if ((i & 2) != 0) {
            str = shareKitPanel.sharePanelOption;
        }
        if ((i & 4) != 0) {
            str2 = shareKitPanel.effectResourceId;
        }
        if ((i & 8) != 0) {
            num = shareKitPanel.shareMediaType;
        }
        if ((i & 16) != 0) {
            str3 = shareKitPanel.clientKey;
        }
        return shareKitPanel.copy(effect, str, str2, num, str3);
    }

    public final ShareKitPanel copy(Effect effect, String str, String str2, Integer num, String str3) {
        return new ShareKitPanel(effect, str, str2, num, str3);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        int i2;
        M12.LIZ(parcel);
        parcel.writeParcelable(this.sharePanelEffect, i);
        parcel.writeString(this.sharePanelOption);
        parcel.writeString(this.effectResourceId);
        Integer num = this.shareMediaType;
        if (num != null) {
            parcel.writeInt(1);
            i2 = num.intValue();
        } else {
            i2 = 0;
        }
        parcel.writeInt(i2);
        parcel.writeString(this.clientKey);
    }

    public final String getClientKey() {
        return this.clientKey;
    }

    public final String getEffectResourceId() {
        return this.effectResourceId;
    }

    public final Integer getShareMediaType() {
        return this.shareMediaType;
    }

    public final Effect getSharePanelEffect() {
        return this.sharePanelEffect;
    }

    public final String getSharePanelOption() {
        return this.sharePanelOption;
    }

    public final void setClientKey(String str) {
        this.clientKey = str;
    }

    public final void setEffectResourceId(String str) {
        this.effectResourceId = str;
    }

    public final void setShareMediaType(Integer num) {
        this.shareMediaType = num;
    }

    public final void setSharePanelEffect(Effect effect) {
        this.sharePanelEffect = effect;
    }

    public final void setSharePanelOption(String str) {
        this.sharePanelOption = str;
    }

    public ShareKitPanel(Effect effect, String str, String str2, Integer num, String str3) {
        this.sharePanelEffect = effect;
        this.sharePanelOption = str;
        this.effectResourceId = str2;
        this.shareMediaType = num;
        this.clientKey = str3;
    }

    /* JADX WARNING: Illegal instructions before constructor call */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public /* synthetic */ ShareKitPanel(com.ss.android.ugc.effectmanager.effect.model.Effect r7, java.lang.String r8, java.lang.String r9, java.lang.Integer r10, java.lang.String r11, int r12, X.2HN r13) {
        /*
            r6 = this;
            r3 = r9
            r1 = r7
            r2 = r8
            r0 = r12 & 1
            r4 = 0
            if (r0 == 0) goto L_0x0009
            r1 = r4
        L_0x0009:
            r0 = r12 & 2
            java.lang.String r5 = ""
            if (r0 == 0) goto L_0x0010
            r2 = r5
        L_0x0010:
            r0 = r12 & 4
            if (r0 == 0) goto L_0x0015
            r3 = r5
        L_0x0015:
            r0 = r12 & 8
            if (r0 == 0) goto L_0x0024
        L_0x0019:
            r0 = r12 & 16
            if (r0 == 0) goto L_0x0022
        L_0x001d:
            r0 = r6
            r0.<init>(r1, r2, r3, r4, r5)
            return
        L_0x0022:
            r5 = r11
            goto L_0x001d
        L_0x0024:
            r4 = r10
            goto L_0x0019
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.common.ShareKitPanel.<init>(com.ss.android.ugc.effectmanager.effect.model.Effect, java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, int, X.2HN):void");
    }
}
