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

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


package ak.smack;

import ak.im.sdk.manager.ye;
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 r5 extends IQ {
    private final String a;
    private Akeychat.InterceptBotMsgResponse f4639b;
    private String f4640c;
    private boolean f4641d;
    String f4642e;
    String f;

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

    public r5() {
        super("intercept_bot_msg", "http://akey.im/protocol/xmpp/iq/intercept_bot_msg");
        this.a = r5.class.getSimpleName();
        this.f4641d = true;
        setType(IQ.Type.set);
        setTo(ye.getInstance().getServer().getXmppDomain());
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f4641d) {
            Akeychat.InterceptBotMsgRequest.b newBuilder = Akeychat.InterceptBotMsgRequest.newBuilder();
            newBuilder.setBotId(this.f4642e);
            newBuilder.setMsgId(this.f);
            String str = this.a;
            Log.debug(str, "req is " + newBuilder.toString());
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f4640c);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.InterceptBotMsgResponse getmResponse() {
        return this.f4639b;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f4640c = text;
            this.f4639b = Akeychat.InterceptBotMsgResponse.parseFrom(ak.comm.d.decode(text));
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    public r5(String str, String str2) {
        super("intercept_bot_msg", "http://akey.im/protocol/xmpp/iq/intercept_bot_msg");
        this.a = r5.class.getSimpleName();
        this.f4641d = true;
        setType(IQ.Type.set);
        setTo(ye.getInstance().getServer().getXmppDomain());
        this.f4642e = str;
        this.f = str2;
    }
}