导航菜单

页面标题

页面副标题

Hopscotch v9.7.2 - CustomBrowserConfig.java 源代码

正在查看: Hopscotch v9.7.2 应用的 CustomBrowserConfig.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.payu.custombrowser.bean;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import android.view.View;
import android.widget.ArrayAdapter;
import androidx.annotation.NonNull;
import com.payu.custombrowser.Bank;
import com.payu.custombrowser.R;
import com.payu.custombrowser.upiintent.Payment;
import com.payu.custombrowser.util.CBConstant;
import com.payu.india.Payu.PayuConstants;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class CustomBrowserConfig implements Parcelable {
    public static final Parcelable.Creator<CustomBrowserConfig> CREATOR = new a();
    public static final int DISABLE = -1;
    public static final int ENABLE = 0;
    public static final int FAIL_MODE = 2;
    public static final int FALSE = -1;
    public static final int TRUE = 0;
    public static final int WARN_MODE = 1;
    private static View g0;
    private String A;
    private String B;
    private String C;
    private int D;
    private int E;
    private int F;
    private int G;
    private String H;
    private String I;
    private ArrayAdapter J;
    private int K;
    private int L;
    private int M;
    private String N;
    private String O;
    private int P;
    private View Q;
    private List<String> R;
    private String S;
    private StringBuffer T;
    private String U;
    private String V;
    private String W;
    private String X;
    private String Y;
    private String Z;
    private String a;
    private String a0;
    private int b;
    private List<String> b0;
    private int c;
    private String c0;
    private int d;
    private String d0;
    private String e;
    private String e0;
    private String f;
    private int f0;
    private String g;
    private int h;
    private int i;
    private int j;
    private int k;
    private int l;
    private String m;
    private String n;
    private String o;
    private String p;
    private int q;
    private String r;
    private String s;
    private String t;
    private String u;
    private String v;
    private String w;
    private String x;
    private String y;
    private String z;

    public class a implements Parcelable.Creator<CustomBrowserConfig> {
        @Override
        public CustomBrowserConfig createFromParcel(Parcel parcel) {
            return new CustomBrowserConfig(parcel);
        }

        @Override
        public CustomBrowserConfig[] newArray(int i) {
            return new CustomBrowserConfig[i];
        }
    }

    private CustomBrowserConfig() {
        this.j = -1;
        this.R = new ArrayList();
        this.Z = "";
        this.f0 = -1;
    }

    private void a(String str, String str2) {
        this.T.append(str);
        this.T.append(str2);
        this.T.append("|");
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public String getAnalyticsString() {
        return this.T.toString();
    }

    public int getAutoApprove() {
        return this.c;
    }

    public int getAutoSelectOTP() {
        return this.d;
    }

    public String getBaseTextColor() {
        return this.e0;
    }

    public int getCbDrawerCustomMenu() {
        return this.K;
    }

    public ArrayAdapter getCbMenuAdapter() {
        return this.J;
    }

    public int getDisableBackButtonDialog() {
        return this.i;
    }

    public int getDisableIntentSeamlessFailure() {
        return this.f0;
    }

    public List<String> getDomainUrlListToUnclear() {
        return this.R;
    }

    public String getEmail() {
        return TextUtils.isEmpty(this.a0) ? CBConstant.MINKASU_PAY_DUMMY_EMAIL : this.a0;
    }

    public int getEnableSslDialog() {
        return this.j;
    }

    public int getEnableSurePay() {
        return this.l;
    }

    public int getEnableWebFlow() {
        return this.L;
    }

    public String getFirstName() {
        return this.Y;
    }

    public int getGmsProviderUpdatedStatus() {
        return this.M;
    }

    public String getHtmlData() {
        return this.p;
    }

    public int getInternetRestoredWindowTTL() {
        return this.F;
    }

    public int getIsPhonePeUserCacheEnabled() {
        return this.P;
    }

    public String getLastName() {
        return this.Z;
    }

    public String getMerchantCheckoutActivityPath() {
        return this.m;
    }

    public String getMerchantKey() {
        return this.f;
    }

    public String getMerchantName() {
        return this.W;
    }

    public int getMerchantResponseTimeout() {
        return this.G;
    }

    public int getMerchantSMSPermission() {
        return this.k;
    }

    public List<String> getOneClickPayBankCodes() {
        return this.b0;
    }

    public String getPackageNameForSpecificApp() {
        return this.U;
    }

    public String getPayUOptionPaymentHash() {
        return this.a;
    }

    public String getPaymentType() {
        return this.S;
    }

    public String getPayuPostData() {
        return this.o;
    }

    public String getPhoneNumber() {
        return this.X;
    }

    public String getPostURL() {
        return this.n;
    }

    public String getPrimaryColor() {
        return this.d0;
    }

    public View getProgressDialogCustomView() {
        return this.Q;
    }

    public String getReactVersion() {
        return this.O;
    }

    public String getSdkVersionName() {
        return this.g;
    }

    public int getShowCustombrowser() {
        return this.h;
    }

    public int getSurePayBackgroundTTL() {
        return this.E;
    }

    public int getSurePayMode() {
        return this.D;
    }

    public String getSurePayNotificationChannelId() {
        return this.H;
    }

    public String getSurePayNotificationGoodNetWorkBody() {
        return this.t;
    }

    public String getSurePayNotificationGoodNetWorkHeader() {
        return this.s;
    }

    public String getSurePayNotificationGoodNetworkTitle() {
        return this.r;
    }

    public int getSurePayNotificationIcon() {
        return this.q;
    }

    public String getSurePayNotificationPoorNetWorkBody() {
        return this.w;
    }

    public String getSurePayNotificationPoorNetWorkHeader() {
        return this.v;
    }

    public String getSurePayNotificationPoorNetWorkTitle() {
        return this.u;
    }

    public String getSurePayNotificationTransactionNotVerifiedBody() {
        return this.C;
    }

    public String getSurePayNotificationTransactionNotVerifiedHeader() {
        return this.B;
    }

    public String getSurePayNotificationTransactionNotVerifiedTitle() {
        return this.A;
    }

    public String getSurePayNotificationTransactionVerifiedBody() {
        return this.z;
    }

    public String getSurePayNotificationTransactionVerifiedHeader() {
        return this.y;
    }

    public String getSurePayNotificationTransactionVerifiedTitle() {
        return this.x;
    }

    public String getSurepayS2Surl() {
        return this.N;
    }

    public View getToolBarView() {
        return g0;
    }

    public String getToolbarTitle() {
        return this.I;
    }

    public String getTransactionID() {
        return this.e;
    }

    public String getUserCredential() {
        return this.c0;
    }

    public int getViewPortWideEnable() {
        return this.b;
    }

    public String getWebServiceUrl() {
        return this.V;
    }

    public void setAutoApprove(boolean z) {
        this.c = z ? 1 : 0;
        a("aa_", android.support.v4.media.b.i("", this.c, new StringBuilder()));
    }

    public void setAutoSelectOTP(boolean z) {
        this.d = z ? 1 : 0;
        a("aso_", android.support.v4.media.b.i("", this.d, new StringBuilder()));
    }

    public void setBaseTextColor(String str) {
        this.e0 = str;
    }

    public void setCbDrawerCustomMenu(int i) {
        this.K = i;
    }

    public void setCbMenuAdapter(ArrayAdapter arrayAdapter) {
        this.J = arrayAdapter;
    }

    public void setDisableBackButtonDialog(boolean z) {
        this.i = z ? 1 : 0;
        a("dbbd_", android.support.v4.media.b.i("", this.i, new StringBuilder()));
    }

    public void setDisableIntentSeamlessFailure(int i) {
        this.f0 = i;
    }

    public void setDomainUrlListToUnclear(List<String> list) {
        this.R.addAll(list);
    }

    public void setEmail(String str) {
        this.a0 = str;
    }

    public void setEnableSslDialog(boolean z) {
        this.j = z ? 0 : -1;
        a("esd_", android.support.v4.media.b.i("", this.j, new StringBuilder()));
    }

    public void setEnableSurePay(int i) {
        if (i > 3) {
            i = 3;
        }
        this.l = i;
        a("esp_", android.support.v4.media.b.i("", this.l, new StringBuilder()));
    }

    @Deprecated
    public void setEnableWebFlow(Payment payment, boolean z) {
        payment.setWebFlowSupported(z);
    }

    public void setFirstName(String str) {
        this.Y = str;
    }

    public void setGmsProviderUpdatedStatus(int i) {
        this.M = i;
        a("gpus_", android.support.v4.media.b.i("", this.M, new StringBuilder()));
    }

    public void setHtmlData(String str) {
        this.p = str;
        a("hd_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setInternetRestoredWindowTTL(int i) {
        this.F = i;
        a("irwttl_", android.support.v4.media.b.i("", this.F, new StringBuilder()));
    }

    public void setIsPhonePeUserCacheEnabled(int i) {
        this.P = i;
        a("ipuce_", android.support.v4.media.b.i("", this.P, new StringBuilder()));
    }

    public void setLastName(String str) {
        this.Z = str;
    }

    public void setMerchantCheckoutActivityPath(String str) {
        this.m = str;
        a("mcap_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setMerchantKey(String str) {
        String str2 = Bank.keyAnalytics;
        this.f = str2;
        if (str2 == null || str2.trim().length() < 1) {
            this.f = str;
            Bank.keyAnalytics = str;
        }
        a("mk_", this.f);
    }

    public void setMerchantName(String str) {
        this.W = str;
    }

    public void setMerchantResponseTimeout(int i) {
        this.G = i;
        a("mrt_", android.support.v4.media.b.i("", this.G, new StringBuilder()));
    }

    public void setMerchantSMSPermission(boolean z) {
        this.k = z ? 1 : 0;
        a("msp_", android.support.v4.media.b.i("", this.k, new StringBuilder()));
    }

    public void setOneClickPayBankCodes(List<String> list) {
        this.b0 = list;
    }

    public void setPackageNameForSpecificApp(String str) {
        this.U = str;
    }

    public void setPayUOptionPaymentHash(String str) {
        this.a = str;
    }

    public void setPaymentType(String str) {
        this.S = str;
    }

    public void setPayuPostData(String str) {
        this.o = str;
        HashMap<String, String> e = new com.payu.custombrowser.util.b().e(str);
        String str2 = "Product info: " + e.get(com.payu.paymentparamhelper.PayuConstants.PRODUCT_INFO) + "\nAmount: " + e.get("amount");
        if (this.t == null) {
            this.t = str2;
        }
        if (this.w == null) {
            this.w = str2;
        }
        if (this.z == null) {
            this.z = str2;
        }
        if (this.C == null) {
            this.C = str2;
        }
        if (e.get("key") != null) {
            String str3 = Bank.keyAnalytics;
            if (str3 == null) {
                str3 = e.get("key");
            }
            setMerchantKey(str3);
        }
    }

    public void setPhoneNumber(String str) {
        this.X = str;
    }

    public void setPostURL(String str) {
        this.n = str;
    }

    public void setPrimaryColor(String str) {
        this.d0 = str;
    }

    public void setProgressDialogCustomView(View view) {
        this.Q = view;
        a("pdcv_", view != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setReactVersion(String str) {
        this.O = str;
        a("rv_", str);
    }

    public void setSdkVersionName(String str) {
        this.g = str;
        a("svn_", android.support.v4.media.b.i("", this.D, new StringBuilder()));
    }

    public void setShowCustombrowser(boolean z) {
        this.h = z ? 1 : 0;
        a("scb_", android.support.v4.media.b.i("", this.h, new StringBuilder()));
    }

    public void setSurePayBackgroundTTL(int i) {
        this.E = i;
        a("spbttl_", android.support.v4.media.b.i("", this.E, new StringBuilder()));
    }

    public void setSurePayMode(int i) {
        this.D = i;
        a("spm_", android.support.v4.media.b.i("", this.D, new StringBuilder()));
    }

    public void setSurePayNotificationChannelId(String str) {
        this.H = str;
        a("spnci_", str);
    }

    public void setSurePayNotificationGoodNetWorkBody(String str) {
        this.t = str;
        a("spngnb_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationGoodNetWorkHeader(String str) {
        this.s = str;
        a("spngnh_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationGoodNetworkTitle(String str) {
        this.r = str;
        a("spngnt_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationIcon(int i) {
        this.q = i;
        a("irwttl_", i > 0 ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationPoorNetWorkBody(String str) {
        this.w = str;
        a("spnpnb_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationPoorNetWorkHeader(String str) {
        this.v = str;
        a("spnpnh_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationPoorNetWorkTitle(String str) {
        this.u = str;
        a("spnpnt_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationTransactionNotVerifiedBody(String str) {
        this.C = str;
        a("spntnvb_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationTransactionNotVerifiedHeader(String str) {
        this.B = str;
        a("spntnvh_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationTransactionNotVerifiedTitle(String str) {
        this.A = str;
        a("spntnvt_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationTransactionVerifiedBody(String str) {
        this.z = str;
        a("spntvb_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationTransactionVerifiedHeader(String str) {
        this.y = str;
        a("spntvh_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurePayNotificationTransactionVerifiedTitle(String str) {
        this.x = str;
        a("spntvt_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    public void setSurepayS2Surl(String str) {
        this.N = str;
        a("spsu_", str);
    }

    public void setToolBarView(View view) {
        g0 = view;
    }

    public void setToolbarTitle(String str) {
        this.I = str;
    }

    public void setUserCredential(String str) {
        this.c0 = str;
    }

    public void setViewPortWideEnable(boolean z) {
        this.b = z ? 1 : 0;
        a("vpwe_", android.support.v4.media.b.i("", this.i, new StringBuilder()));
    }

    public void setWebServiceUrl(String str) {
        this.V = str;
        a("wsu_", str != null ? CBConstant.TRANSACTION_STATUS_SUCCESS : PayuConstants.STRING_ZERO);
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.b);
        parcel.writeInt(this.c);
        parcel.writeInt(this.d);
        parcel.writeString(this.e);
        parcel.writeString(this.f);
        parcel.writeString(this.g);
        parcel.writeInt(this.h);
        parcel.writeInt(this.i);
        parcel.writeInt(this.k);
        parcel.writeInt(this.l);
        parcel.writeString(this.m);
        parcel.writeString(this.n);
        parcel.writeString(this.o);
        parcel.writeString(this.p);
        parcel.writeInt(this.q);
        parcel.writeString(this.r);
        parcel.writeString(this.s);
        parcel.writeString(this.t);
        parcel.writeString(this.u);
        parcel.writeString(this.v);
        parcel.writeString(this.w);
        parcel.writeString(this.x);
        parcel.writeString(this.y);
        parcel.writeString(this.z);
        parcel.writeString(this.A);
        parcel.writeString(this.B);
        parcel.writeString(this.C);
        parcel.writeString(this.H);
        parcel.writeInt(this.D);
        parcel.writeInt(this.E);
        parcel.writeInt(this.F);
        parcel.writeInt(this.K);
        parcel.writeInt(this.L);
        parcel.writeInt(this.M);
        parcel.writeString(this.N);
        parcel.writeInt(this.P);
        parcel.writeInt(this.G);
        parcel.writeString(this.S);
        parcel.writeString(this.V);
        parcel.writeString(this.T.toString());
        parcel.writeList(this.R);
        parcel.writeString(this.U);
        parcel.writeInt(this.j);
        parcel.writeString(this.W);
        parcel.writeString(this.X);
        parcel.writeString(this.Y);
        parcel.writeString(this.Z);
        parcel.writeString(this.a0);
        parcel.writeList(this.b0);
        parcel.writeString(this.c0);
        parcel.writeString(this.I);
        parcel.writeString(this.d0);
        parcel.writeString(this.e0);
    }

    public CustomBrowserConfig(Parcel parcel) {
        this.j = -1;
        this.R = new ArrayList();
        this.Z = "";
        this.f0 = -1;
        this.b = parcel.readInt();
        this.c = parcel.readInt();
        this.d = parcel.readInt();
        this.e = parcel.readString();
        this.f = parcel.readString();
        this.g = parcel.readString();
        this.h = parcel.readInt();
        this.i = parcel.readInt();
        this.k = parcel.readInt();
        this.l = parcel.readInt();
        this.m = parcel.readString();
        this.n = parcel.readString();
        this.o = parcel.readString();
        this.p = parcel.readString();
        this.q = parcel.readInt();
        this.r = parcel.readString();
        this.s = parcel.readString();
        this.t = parcel.readString();
        this.u = parcel.readString();
        this.v = parcel.readString();
        this.w = parcel.readString();
        this.x = parcel.readString();
        this.y = parcel.readString();
        this.z = parcel.readString();
        this.A = parcel.readString();
        this.B = parcel.readString();
        this.C = parcel.readString();
        this.H = parcel.readString();
        this.D = parcel.readInt();
        this.E = parcel.readInt();
        this.F = parcel.readInt();
        this.K = parcel.readInt();
        this.L = parcel.readInt();
        this.M = parcel.readInt();
        this.N = parcel.readString();
        this.P = parcel.readInt();
        this.G = parcel.readInt();
        this.S = parcel.readString();
        this.V = parcel.readString();
        this.T = new StringBuffer(parcel.readString());
        this.R = parcel.readArrayList(null);
        this.U = parcel.readString();
        this.j = parcel.readInt();
        this.W = parcel.readString();
        this.X = parcel.readString();
        this.Y = parcel.readString();
        this.Z = parcel.readString();
        this.a0 = parcel.readString();
        this.b0 = parcel.readArrayList(String.class.getClassLoader());
        this.c0 = parcel.readString();
        this.I = parcel.readString();
        this.d0 = parcel.readString();
        this.e0 = parcel.readString();
    }

    public CustomBrowserConfig(@NonNull String str, @NonNull String str2) {
        this.j = -1;
        this.R = new ArrayList();
        this.Z = "";
        this.f0 = -1;
        this.T = new StringBuffer();
        this.e = str2;
        this.f = str;
        this.q = R.drawable.surepay_logo;
        this.r = "Internet Restored";
        this.s = "You can now resume the transaction";
        this.u = "No Internet Found";
        this.v = "We could not detect internet on your device";
        this.x = "Transaction Verified";
        this.y = "The bank has verified this transaction and we are good to go.";
        this.A = "Transaction Status Unknown";
        this.B = "The bank could not verify the transaction at this time.";
        this.H = CBConstant.NOTIFICATION_CHANNEL_ID;
        this.l = 0;
        this.D = 1;
        this.E = 1800000;
        this.F = 5000;
        this.L = 1;
        this.M = -1;
        this.P = 0;
        this.G = 5000;
        this.V = "https://info.payu.in/merchant/postservice.php?form=2";
    }
}