CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05

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


package ak.smack;

import ak.im.sdk.manager.XMPPConnectionManager;
import ak.im.sdk.manager.ye;
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 a;
    private final String f4813b;
    private String f4814c;
    boolean f4815d;

    public y4() {
        super("assurance", "http://akey.im/protocol/xmpp/iq/assurance");
        this.a = "ReliabilityRegisterExtension";
        this.f4813b = "operation";
        this.f4814c = "add";
        setTo(ye.getInstance().getServer().getXmppDomain());
        setFrom(XMPPConnectionManager.a.getInstance().getConnection().getUser());
        setType(IQ.Type.set);
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f4815d) {
            JSONObject jSONObject = new JSONObject();
            try {
                jSONObject.put("operation", this.f4814c);
            } catch (JSONException e2) {
                e2.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.a = "ReliabilityRegisterExtension";
        this.f4813b = "operation";
        this.f4814c = "add";
        this.f4815d = true;
        setTo(ye.getInstance().getServer().getXmppDomain());
        setFrom(XMPPConnectionManager.a.getInstance().getConnection().getUser());
        setType(IQ.Type.set);
        this.f4814c = str;
    }
}