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

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

    private final String f48988a;

    private String f48989b;

    Akeychat.ChangedFeedbackSessionResponse f48990c;

    private long f48991d;

    private boolean f48992e;

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

    public x(long j10) {
        super("changed_feedback_session", "http://akey.im/protocol/xmpp/iq/changed_feedback_session", bf.getIQFromTo());
        this.f48988a = "ChangedFeedbackSyncIQ";
        setType(IQ.Type.get);
        this.f48992e = true;
        this.f48991d = j10;
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f48992e) {
            Akeychat.ChangedFeedbackSessionRequest.b newBuilder = Akeychat.ChangedFeedbackSessionRequest.newBuilder();
            newBuilder.setLastTimeStamp(this.f48991d);
            Log.debug("ChangedFeedbackSyncIQ", "changedMessageSyncRequestBuilder " + newBuilder.build());
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.ChangedFeedbackSessionResponse getmMessageSyncResponse() {
        return this.f48990c;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f48989b = text;
            this.f48990c = Akeychat.ChangedFeedbackSessionResponse.parseFrom(e.e.decode(text));
            Log.debug("ChangedFeedbackSyncIQ", "changed_feedback_session:" + this.f48990c);
        } catch (Exception e10) {
            this.f48990c = null;
            e10.printStackTrace();
        }
    }

    public x() {
        super("changed_feedback_session", "http://akey.im/protocol/xmpp/iq/changed_feedback_session", null);
        this.f48988a = "ChangedFeedbackSyncIQ";
    }
}