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

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

    private Akeychat.GroupUnconfirmedTopMessageGetResponse f48854a;

    private String f48855b;

    private long f48856c;

    private long f48857d;

    private String f48858e;

    private boolean f48859f;

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

    public t4(String str, long j10, long j11) {
        super("sessiongrouptopmessagequery", "http://akey.im/protocol/xmpp/iq/sessiongrouptopmessagequery");
        this.f48859f = true;
        this.f48855b = str;
        this.f48856c = j10;
        this.f48857d = j11;
        setType(IQ.Type.get);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f48859f) {
            Log.d("QueryUnconfirmedTopMsgIQ", this.f48855b + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + this.f48856c + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + this.f48857d);
            Akeychat.GroupUnconfirmedTopMessageGetRequest.b newBuilder = Akeychat.GroupUnconfirmedTopMessageGetRequest.newBuilder();
            newBuilder.setSessionId(this.f48855b);
            newBuilder.setMessageSeqNo(this.f48856c);
            newBuilder.setLen(this.f48857d);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", "pull some messages ");
        }
        return iQChildElementXmlStringBuilder;
    }

    public long getmOffset() {
        return this.f48857d;
    }

    public Akeychat.GroupUnconfirmedTopMessageGetResponse getmResponse() {
        return this.f48854a;
    }

    public long getmSeqNO() {
        return this.f48856c;
    }

    public String getmSessionId() {
        return this.f48855b;
    }

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

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