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

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


package ak.smack;

import ak.im.sdk.manager.ye;
import android.text.TextUtils;
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 f3 extends IQ {
    private final String a;
    private Akeychat.CancelUserApplyInfoResponse f4309b;
    private String f4310c;
    private boolean f4311d;
    public String f4312e;

    public static class a extends IQProvider {
        @Override
        public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
            f3 f3Var = new f3();
            boolean z = false;
            boolean z2 = true;
            while (!z) {
                int next = xmlPullParser.next();
                if (next == 4) {
                    f3Var.parseResults(xmlPullParser);
                    z2 = false;
                } else {
                    if (xmlPullParser.getName().equals("error")) {
                        String attributeValue = xmlPullParser.getAttributeValue(null, "code");
                        if (!TextUtils.isEmpty(attributeValue)) {
                            f3Var.f4312e = attributeValue;
                        }
                    } else if (next == 3 && !z2 && xmlPullParser.getName().equals("canceluserapplyinfo")) {
                    }
                    z = true;
                }
            }
            return f3Var;
        }
    }

    public f3() {
        super("canceluserapplyinfo", "http://akey.im/protocol/xmpp/iq/canceluserapplyinfo");
        this.a = f3.class.getSimpleName();
        this.f4312e = "";
        this.f4311d = true;
        setType(IQ.Type.get);
        setTo(ye.getInstance().getServer().getXmppDomain());
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f4311d) {
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes("".getBytes()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f4310c);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.CancelUserApplyInfoResponse getmResponse() {
        return this.f4309b;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f4310c = text;
            this.f4309b = Akeychat.CancelUserApplyInfoResponse.parseFrom(ak.comm.d.decode(text));
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    public f3(String str, String str2) {
        super("canceluserapplyinfo", "http://akey.im/protocol/xmpp/iq/canceluserapplyinfo");
        this.a = f3.class.getSimpleName();
        this.f4312e = "";
        this.f4311d = true;
        setType(IQ.Type.get);
        setTo(ye.getInstance().getServer().getXmppDomain());
    }
}