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

import X.AnonymousClass2HN;
import X.C26783Pa;
import X.C26793Pb;
import X.M12;
import android.app.Activity;
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.RouteArgExtension;
import com.bytedance.router.arg.RouteParser;
import java.util.Objects;

public final class UpdateTipsArgs implements IRouteArg {
    public static final Parcelable.Creator<UpdateTipsArgs> CREATOR = new C26783Pa();
    public static final C26793Pb Companion = new C26793Pb((byte) 0);
    public String urlToGo;
    public String versionRequire;

    static {
        Covode.recordClassIndex(63399);
    }

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

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

    public static /* synthetic */ UpdateTipsArgs copy$default(UpdateTipsArgs updateTipsArgs, String str, String str2, int i, Object obj) {
        if ((i & 1) != 0) {
            str = updateTipsArgs.urlToGo;
        }
        if ((i & 2) != 0) {
            str2 = updateTipsArgs.versionRequire;
        }
        return updateTipsArgs.copy(str, str2);
    }

    private Object[] getObjects() {
        return new Object[]{this.urlToGo, this.versionRequire};
    }

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

    public final int describeContents() {
        return 0;
    }

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

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

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

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

    public final String getUrlToGo() {
        return this.urlToGo;
    }

    public final String getVersionRequire() {
        return this.versionRequire;
    }

    public final void setUrlToGo(String str) {
        this.urlToGo = str;
    }

    public final void setVersionRequire(String str) {
        this.versionRequire = str;
    }

    public static final UpdateTipsArgs getOrNew(Activity activity) {
        M12.LIZ(activity);
        UpdateTipsArgs updateTipsArgs = (UpdateTipsArgs) RouteArgExtension.INSTANCE.navArg(activity).getValue();
        if (updateTipsArgs == null) {
            return new UpdateTipsArgs((String) null, (String) null, 3, (AnonymousClass2HN) null);
        }
        return updateTipsArgs;
    }

    public UpdateTipsArgs(String str, String str2) {
        this.urlToGo = str;
        this.versionRequire = str2;
    }

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