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

以下内容为反编译后的 t5.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 t5 extends IQ {

    private final String f48860a;

    private Akeychat.InterceptBotMsgResponse f48861b;

    private String f48862c;

    private boolean f48863d;

    String f48864e;

    String f48865f;

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

    public t5() {
        super("intercept_bot_msg", "http://akey.im/protocol/xmpp/iq/intercept_bot_msg");
        this.f48860a = t5.class.getSimpleName();
        this.f48863d = true;
        setType(IQ.Type.set);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f48863d) {
            Akeychat.InterceptBotMsgRequest.b newBuilder = Akeychat.InterceptBotMsgRequest.newBuilder();
            newBuilder.setBotId(this.f48864e);
            newBuilder.setMsgId(this.f48865f);
            Log.debug(this.f48860a, "req is " + newBuilder.toString());
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f48862c);
        }
        return iQChildElementXmlStringBuilder;
    }

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

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f48862c = text;
            this.f48861b = Akeychat.InterceptBotMsgResponse.parseFrom(e.e.decode(text));
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    public t5(String str, String str2) {
        super("intercept_bot_msg", "http://akey.im/protocol/xmpp/iq/intercept_bot_msg");
        this.f48860a = t5.class.getSimpleName();
        this.f48863d = true;
        setType(IQ.Type.set);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
        this.f48864e = str;
        this.f48865f = str2;
    }
}