导航菜单

页面标题

页面副标题

Clash Legends v0.0.1 - bv.java 源代码

正在查看: Clash Legends v0.0.1 应用的 bv.java JAVA 源代码文件

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


package com.paypal.android.sdk;

import java.util.GregorianCalendar;
import java.util.Map;
import org.json.JSONObject;

public class bv extends cv {
    private final bw a;

    static {
        bv.class.getSimpleName();
    }

    public bv(cu cuVar, cx cxVar, b bVar, bw bwVar) {
        super(cuVar, cxVar, bVar, null);
        this.a = bwVar;
        a("Accept", "application/json; charset=utf-8");
        a("Accept-Language", "en_US");
        a("Content-Type", "application/json");
    }

    private static JSONObject a(Map map) {
        JSONObject jSONObject = new JSONObject();
        for (String str : map.keySet()) {
            jSONObject.accumulate(str, map.get(str));
        }
        return jSONObject;
    }

    @Override
    public final String a(cu cuVar) {
        return "https://api.paypal.com/v1/tracking/events";
    }

    @Override
    public final boolean a() {
        return true;
    }

    @Override
    public final String b() {
        String a = d.a(s().d().e());
        String str = this.a.a;
        JSONObject jSONObject = new JSONObject();
        jSONObject.accumulate("tracking_visitor_id", a);
        jSONObject.accumulate("tracking_visit_id", str);
        JSONObject jSONObject2 = new JSONObject();
        jSONObject2.accumulate("actor", jSONObject);
        jSONObject2.accumulate("channel", "mobile");
        long currentTimeMillis = System.currentTimeMillis();
        jSONObject2.accumulate("tracking_event", Long.toString(currentTimeMillis));
        this.a.b.put("t", Long.toString(currentTimeMillis - new GregorianCalendar().getTimeZone().getRawOffset()));
        this.a.b.put("dsid", a);
        this.a.b.put("vid", str);
        jSONObject2.accumulate("event_params", a(this.a.b));
        JSONObject jSONObject3 = new JSONObject();
        jSONObject3.accumulate("events", jSONObject2);
        return jSONObject3.toString();
    }

    @Override
    public final void c() {
    }

    @Override
    public final void d() {
    }

    @Override
    public final String e() {
        return "mockResponse";
    }
}