package com.ss.android.ugc.aweme.setting.ui;

import X.AnonymousClass2HN;
import X.AnonymousClass4KZ;
import X.M12;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.bytedance.router.annotation.IRouteArg;
import com.bytedance.router.arg.RouteParser;
import java.util.Objects;

public final class SettingsNewVersionActivityArgs implements IRouteArg {
    public static final Parcelable.Creator<SettingsNewVersionActivityArgs> CREATOR = new AnonymousClass4KZ();
    public final String enterFrom;
    public final String enterMethod;

    static {
        Covode.recordClassIndex(106408);
    }

    public SettingsNewVersionActivityArgs() {
        this((String) null, (String) null, 3, (AnonymousClass2HN) null);
    }

    public static SettingsNewVersionActivityArgs __fromBundle(Bundle bundle) {
        String str;
        String str2;
        if (bundle == null) {
            return null;
        }
        int i = 0;
        if (bundle.containsKey("enter_from")) {
            str = (String) RouteParser.INSTANCE.parse(bundle.get("enter_from"), String.class);
        } else {
            i = 1;
            str = null;
        }
        if (bundle.containsKey("enter_method")) {
            str2 = (String) RouteParser.INSTANCE.parse(bundle.get("enter_method"), String.class);
        } else {
            i += 2;
            str2 = null;
        }
        return new SettingsNewVersionActivityArgs(str, str2, i, (AnonymousClass2HN) null);
    }

    public static /* synthetic */ SettingsNewVersionActivityArgs copy$default(SettingsNewVersionActivityArgs settingsNewVersionActivityArgs, String str, String str2, int i, Object obj) {
        if ((i & 1) != 0) {
            str = settingsNewVersionActivityArgs.enterFrom;
        }
        if ((i & 2) != 0) {
            str2 = settingsNewVersionActivityArgs.enterMethod;
        }
        return settingsNewVersionActivityArgs.copy(str, str2);
    }

    private Object[] getObjects() {
        return new Object[]{this.enterFrom, this.enterMethod};
    }

    public final SettingsNewVersionActivityArgs copy(String str, String str2) {
        return new SettingsNewVersionActivityArgs(str, str2);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeString(this.enterFrom);
        parcel.writeString(this.enterMethod);
    }

    public final String getEnterFrom() {
        return this.enterFrom;
    }

    public final String getEnterMethod() {
        return this.enterMethod;
    }

    public SettingsNewVersionActivityArgs(String str, String str2) {
        this.enterFrom = str;
        this.enterMethod = str2;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ SettingsNewVersionActivityArgs(String str, String str2, int i, AnonymousClass2HN r6) {
        this((i & 1) != 0 ? "" : str, (i & 2) != 0 ? "" : str2);
    }
}
