CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e

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


package y0;

import ak.im.sdk.manager.XMPPConnectionManager;
import ak.im.utils.Log;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import org.jivesoftware.smack.packet.IQ;
import org.json.JSONException;
import org.json.JSONObject;

public class y4 extends IQ {

    private final String f49067a;

    private final String f49068b;

    private String f49069c;

    boolean f49070d;

    public y4() {
        super("assurance", "http://akey.im/protocol/xmpp/iq/assurance");
        this.f49067a = "ReliabilityRegisterExtension";
        this.f49068b = "operation";
        this.f49069c = "add";
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
        setFrom(XMPPConnectionManager.INSTANCE.getInstance().getConnection().getUser());
        setType(IQ.Type.set);
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f49070d) {
            JSONObject jSONObject = new JSONObject();
            try {
                jSONObject.put("operation", this.f49069c);
            } catch (JSONException e10) {
                e10.printStackTrace();
                Log.w("ReliabilityRegisterExtension", "illegal group params,create group failed.");
            }
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, jSONObject.toString());
        }
        return iQChildElementXmlStringBuilder;
    }

    public y4(String str) {
        super("assurance", "http://akey.im/protocol/xmpp/iq/assurance");
        this.f49067a = "ReliabilityRegisterExtension";
        this.f49068b = "operation";
        this.f49069c = "add";
        this.f49070d = true;
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
        setFrom(XMPPConnectionManager.INSTANCE.getInstance().getConnection().getUser());
        setType(IQ.Type.set);
        this.f49069c = str;
    }
}