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

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


package y0;

import ak.im.utils.Log;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;

public class s6 extends b {

    private final String f48813a;

    private boolean f48814b;

    private String f48815c;

    private String f48816d;

    private Akeychat.VoipSessionQueryResponse f48817e;

    public static class a extends IQProvider {
        @Override
        public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
            s6 s6Var = new s6();
            boolean z10 = false;
            while (!z10) {
                int next = xmlPullParser.next();
                if (next == 4) {
                    s6Var.parseResults(xmlPullParser);
                } else if (next == 3 && xmlPullParser.getName().equals("voipsessionquery")) {
                    z10 = true;
                }
            }
            return s6Var;
        }
    }

    public s6(String str, q1 q1Var) {
        super("voipsessionquery", "http://akey.im/protocol/xmpp/iq/voipsessionquery", q1Var);
        this.f48813a = "VoIPSessionQueryExtension";
        this.f48814b = true;
        this.f48816d = str;
        setType(IQ.Type.get);
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f48814b) {
            Akeychat.VoipSessionQueryRequest.b newBuilder = Akeychat.VoipSessionQueryRequest.newBuilder();
            newBuilder.setVoipSessionId(this.f48816d);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f48815c);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.VoipSessionQueryResponse getmResponse() {
        return this.f48817e;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f48815c = text;
            this.f48817e = Akeychat.VoipSessionQueryResponse.parseFrom(e.e.decode(text));
            Log.i("VoIPSessionQueryExtension", "we get VoipSessionQueryResponse result:" + this.f48817e);
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    public s6() {
        super("voipsessionquery", "http://akey.im/protocol/xmpp/iq/voipsessionquery", null);
        this.f48813a = "VoIPSessionQueryExtension";
        this.f48814b = false;
    }
}