RbChat v4.56630229版本的 MD5 值为:d137f4b55d6b64b50641a810905f5957

以下内容为反编译后的 C0099e.java 源代码,内容仅作参考


package com.paypal.android.sdk;

import com.autonavi.base.amap.mapcore.tools.GLMapStaticValue;
import com.paypal.android.sdk.payments.PaymentActivity;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
public class C0099e {
    private static final String a = "e";
    private static volatile C0099e b;
    private static boolean c;
    private final Map d;
    private int e;

    protected C0099e() {
        HashMap hashMap = new HashMap();
        this.d = hashMap;
        this.e = GLMapStaticValue.ANIMATION_FLUENT_TIME;
        C0102h c0102h = new C0102h();
        c0102h.a("live");
        c0102h.a(new HashMap());
        c0102h.a().put(EnumC0056a.OAuth2Request, "https://api.paypal.com/v1/oauth2/token");
        c0102h.a().put(EnumC0056a.AdaptivePaymentsPayRequest, "https://svcs.paypal.com/AdaptivePayments/Pay");
        c0102h.a().put(EnumC0056a.DeviceInterrogationV2Request, "https://mobileclient.paypal.com/GMAdapter/DeviceInterrogation");
        c0102h.a().put(EnumC0056a.DeviceAuthenticateUser, "https://mobileclient.paypal.com/GMAdapter/DeviceAuthenticateUser");
        c0102h.a().put(EnumC0056a.CreditCardPaymentRequest, "https://api.paypal.com/v1/payments/payment");
        c0102h.a().put(EnumC0056a.TokenizeCreditCardRequest, "https://api.paypal.com/v1/vault/credit-card");
        c0102h.a().put(EnumC0056a.DeleteCreditCardRequest, "https://api.paypal.com/v1/vault/credit-card");
        hashMap.put("live", c0102h);
        C0102h c0102h2 = new C0102h();
        c0102h2.a(PaymentActivity.ENVIRONMENT_SANDBOX);
        c0102h2.a(new HashMap());
        c0102h2.a().put(EnumC0056a.OAuth2Request, "https://api.sandbox.paypal.com/v1/oauth2/token");
        c0102h2.a().put(EnumC0056a.AdaptivePaymentsPayRequest, "https://svcs.sandbox.paypal.com/AdaptivePayments/Pay");
        c0102h2.a().put(EnumC0056a.DeviceInterrogationV2Request, "https://mobileclient.sandbox.paypal.com/GMAdapter/DeviceInterrogation");
        c0102h2.a().put(EnumC0056a.DeviceAuthenticateUser, "https://mobileclient.sandbox.paypal.com/GMAdapter/DeviceAuthenticateUser");
        c0102h2.a().put(EnumC0056a.CreditCardPaymentRequest, "https://api.sandbox.paypal.com/v1/payments/payment");
        c0102h2.a().put(EnumC0056a.TokenizeCreditCardRequest, "https://api.sandbox.paypal.com/v1/vault/credit-card");
        c0102h2.a().put(EnumC0056a.DeleteCreditCardRequest, "https://api.sandbox.paypal.com/v1/vault/credit-card");
        hashMap.put(PaymentActivity.ENVIRONMENT_SANDBOX, c0102h2);
        C0102h c0102h3 = new C0102h();
        c0102h3.a(PaymentActivity.ENVIRONMENT_NO_NETWORK);
        c0102h3.a(new HashMap());
        hashMap.put(PaymentActivity.ENVIRONMENT_NO_NETWORK, c0102h3);
    }

    public static C0099e a() {
        if (b == null) {
            synchronized (C0099e.class) {
                if (b == null) {
                    c = false;
                    b = new C0099e();
                }
            }
        }
        return b;
    }

    public static boolean a(String str) {
        return str.equals(PaymentActivity.ENVIRONMENT_NO_NETWORK);
    }

    public static boolean b(String str) {
        return str.startsWith(PaymentActivity.ENVIRONMENT_SANDBOX);
    }

    public static boolean c(String str) {
        return str.equals("live");
    }

    public final String a(String str, EnumC0056a enumC0056a) {
        if (this.d.get(str) == null) {
            Objects.toString(this.d);
            throw new RuntimeException("Invalid environment selected:" + str);
        }
        C0102h c0102h = (C0102h) this.d.get(str);
        if (c0102h == null || c0102h.a() == null) {
            return null;
        }
        return (String) c0102h.a().get(enumC0056a);
    }

    public final int b() {
        return this.e;
    }
}