导航菜单

页面标题

页面副标题

FanCode v7.24.0 - k.java 源代码

正在查看: FanCode v7.24.0 应用的 k.java JAVA 源代码文件

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


package z7;

import com.connectsdk.service.command.ServiceCommand;
import com.conviva.api.ClientSettings;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class k {

    public static String f18070g = "https://pings.conviva.com/ping.ping";

    private g f18071a;

    private f f18072b;

    private boolean f18073c = false;

    private boolean f18074d = false;

    private String f18075e = null;

    private ClientSettings f18076f;

    public k(g gVar, f fVar, ClientSettings clientSettings) {
        this.f18071a = gVar;
        gVar.a("Ping");
        this.f18072b = fVar;
        this.f18076f = clientSettings;
    }

    private String c(String str) throws UnsupportedEncodingException {
        return URLEncoder.encode(str, "UTF-8");
    }

    public void a() {
        if (this.f18074d) {
            return;
        }
        this.f18075e = f18070g + "?comp=sdkjava&clv=" + this.f18076f.version;
        if (this.f18076f != null) {
            this.f18075e += "&cid=" + this.f18076f.customerKey;
        }
        this.f18075e += "&sch=" + x7.a.f17312e;
        if (this.f18076f != null) {
            this.f18074d = true;
        }
    }

    public void b(String str) {
        if (this.f18073c) {
            return;
        }
        try {
            this.f18073c = true;
            a();
            String str2 = this.f18075e + "&d=" + c(str);
            this.f18071a.error("send(): " + str2);
            this.f18072b.a(ServiceCommand.TYPE_GET, str2, null, null, null);
            this.f18073c = false;
        } catch (Exception unused) {
            this.f18073c = false;
            this.f18071a.error("failed to send ping");
        }
    }
}