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

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


package ak.smack;

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 z5 extends ak.smack.b {
    private final String a;
    private final String f4830b;
    Akeychat.UnSubscribeBotResponse f4831c;
    private String f4832d;
    private boolean f4833e;

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

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f4833e) {
            Akeychat.UnSubscribeBotRequest.b newBuilder = Akeychat.UnSubscribeBotRequest.newBuilder();
            newBuilder.setInnerId(this.f4830b);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f4832d);
        }
        return iQChildElementXmlStringBuilder;
    }

    public String getResult() {
        return this.f4832d;
    }

    public Akeychat.UnSubscribeBotResponse getmProtoResponse() {
        return this.f4831c;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f4832d = text;
            this.f4831c = Akeychat.UnSubscribeBotResponse.parseFrom(ak.comm.d.decode(text));
            Log.i("UnfollowBotIQ", "start parse result unfollow:" + this.f4832d);
        } catch (Exception e2) {
            Log.w("UnfollowBotIQ", "encounter excp in parse results" + e2.getMessage());
        }
    }

    private z5() {
        super("unsubscribebot", "http://akey.im/protocol/xmpp/iq/unsubscribebot", null);
        this.a = "UnfollowBotIQ";
        this.f4830b = null;
    }

    public z5(String str, q1 q1Var) {
        super("unsubscribebot", "http://akey.im/protocol/xmpp/iq/unsubscribebot", q1Var);
        this.a = "UnfollowBotIQ";
        setType(IQ.Type.set);
        this.f4830b = str;
        this.f4833e = true;
    }
}