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

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


package ak.smack;

import ak.im.sdk.manager.ye;
import android.util.Log;
import com.alibaba.fastjson.JSONObject;
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 i6 extends IQ {
    private static final String a = "i6";
    private JSONObject f4409b;
    private String f4410c;
    private boolean f4411d;
    private String f4412e;
    private long f;
    boolean g;

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

    public i6(JSONObject jSONObject) {
        super("userproperties", "http://akey.im/protocol/xmpp/iq/userpropertiesset");
        this.f4410c = "success";
        this.g = true;
        this.f4409b = jSONObject;
        setType(IQ.Type.set);
        setTo(ye.getInstance().getServer().getXmppDomain());
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.g) {
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, this.f4409b.toString());
        } else {
            iQChildElementXmlStringBuilder.optElement("app-result", this.f4412e);
            iQChildElementXmlStringBuilder.optElement("app-version", Long.valueOf(this.f));
        }
        return iQChildElementXmlStringBuilder;
    }

    public long getVersionCode() {
        return this.f;
    }

    public String getmResult() {
        return this.f4412e;
    }

    public boolean isSuccess() {
        return this.f4411d;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            this.f4412e = xmlPullParser.getText();
            String str = a;
            Log.d(str, "mResult:" + this.f4412e);
            if (this.f4410c.equals(this.f4412e)) {
                this.f4411d = true;
            } else {
                this.f = Long.parseLong(this.f4412e);
            }
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    public i6() {
        super("userproperties", "http://akey.im/protocol/xmpp/iq/userpropertiesset");
        this.f4410c = "success";
    }
}