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

以下内容为反编译后的 x2.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 x2 extends IQ {
    private Akeychat.ChatSessionMessageStatusGetResponse a;
    private String f4781b;
    private long f4782c;
    private long f4783d;
    private String f4784e;
    private boolean f;

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

    public x2(String str, long j, long j2) {
        super("sessionmessagestatus", "http://akey.im/protocol/xmpp/iq/sessionmessagestatus");
        this.f = true;
        this.f4781b = str;
        this.f4782c = ak.im.utils.a4.cut32Protobuf(j);
        this.f4783d = ak.im.utils.a4.cut32Protobuf(j2);
        setType(IQ.Type.get);
        setTo(ye.getInstance().getServer().getXmppDomain());
        Log.d("PullSessionMessageStatus", "PullSessionMessageStatus Rang:" + String.format("%s|{%d,%d}", str, Long.valueOf(j), Long.valueOf(j2)));
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f) {
            Akeychat.ChatSessionMessageStatusGetRequest.b newBuilder = Akeychat.ChatSessionMessageStatusGetRequest.newBuilder();
            newBuilder.setSessionId(this.f4781b);
            newBuilder.setFirstMessageSeqNo(this.f4782c);
            newBuilder.setLastMessageSeqNo(this.f4783d);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f4784e);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.ChatSessionMessageStatusGetResponse getmResponse() {
        return this.a;
    }

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

    public x2() {
        super("sessionmessagestatus", "http://akey.im/protocol/xmpp/iq/sessionmessagestatus");
    }
}