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

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


package y0;

import ak.im.sdk.manager.bf;
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 h4 extends IQ {

    private long f48325a;

    private long f48326b;

    private boolean f48327c;

    private Akeychat.TopArticleQueryResponse f48328d;

    private String f48329e;

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

    public h4(long j10, long j11) {
        super("toparticle", "http://akey.im/protocol/xmpp/iq/toparticle");
        setType(IQ.Type.get);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
        setFrom(bf.getInstance().getUserMe().getJID());
        this.f48325a = j10;
        this.f48326b = j11;
        this.f48327c = true;
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f48327c) {
            Akeychat.TopArticleQueryRequest.b newBuilder = Akeychat.TopArticleQueryRequest.newBuilder();
            newBuilder.setIndex(this.f48325a);
            newBuilder.setLen(this.f48326b);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            String str = this.f48329e;
            if (str != null) {
                iQChildElementXmlStringBuilder.optElement("result", str);
            }
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.TopArticleQueryResponse getmResponse() {
        return this.f48328d;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f48329e = text;
            this.f48328d = Akeychat.TopArticleQueryResponse.parseFrom(e.e.decode(text));
        } catch (Exception e10) {
            e10.printStackTrace();
            Log.w("QueryNewsIQ", "encounter excp in parse results" + e10.getMessage());
        }
    }

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