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

以下内容为反编译后的 t1.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 t1 extends IQ {
    private final String a;
    private Akeychat.OfflineDeviceResponse f4676b;
    private String f4677c;
    private String f4678d;
    private boolean f4679e;

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

    public t1() {
        super("offlinedevice", "http://akey.im/protocol/xmpp/iq/offlinedevice");
        this.a = t1.class.getSimpleName();
        this.f4679e = true;
        setType(IQ.Type.set);
        setTo(ye.getInstance().getServer().getXmppDomain());
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f4679e) {
            Akeychat.OfflineDeviceRequest.b newBuilder = Akeychat.OfflineDeviceRequest.newBuilder();
            newBuilder.setResource(this.f4678d);
            Log.debug(this.a, newBuilder.build().toString());
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f4677c);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.OfflineDeviceResponse getmResponse() {
        return this.f4676b;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f4677c = text;
            this.f4676b = Akeychat.OfflineDeviceResponse.parseFrom(ak.comm.d.decode(text));
            String str = this.a;
            Log.debug(str, "we get token result:" + this.f4676b);
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    public t1(String str) {
        super("offlinedevice", "http://akey.im/protocol/xmpp/iq/offlinedevice");
        this.a = t1.class.getSimpleName();
        this.f4679e = true;
        setType(IQ.Type.set);
        setTo(ye.getInstance().getServer().getXmppDomain());
        this.f4678d = str;
    }
}