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

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


package ak.smack;

import ak.im.sdk.manager.ye;
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 g2 extends IQ {
    private final String a;
    private String f4333b;
    private long f4334c;
    private boolean f4335d;
    private String f4336e;
    private Akeychat.MiyunDirectoryModifyResponse f;

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

    public g2() {
        super("miyundirectorymodify", "http://akey.im/protocol/xmpp/iq/miyundirectorymodify");
        this.a = "MiYunDirectoryModify";
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f4335d) {
            Akeychat.MiyunDirectoryModifyRequest.b newBuilder = Akeychat.MiyunDirectoryModifyRequest.newBuilder();
            newBuilder.setName(this.f4333b);
            newBuilder.setDirectoryId(this.f4334c);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f4336e);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.MiyunDirectoryModifyResponse getResponse() {
        return this.f;
    }

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

    public g2(String str, long j) {
        super("miyundirectorymodify", "http://akey.im/protocol/xmpp/iq/miyundirectorymodify");
        this.a = "MiYunDirectoryModify";
        this.f4335d = true;
        this.f4333b = str;
        this.f4334c = j;
        setType(IQ.Type.set);
        setTo(ye.getInstance().getServer().getXmppDomain());
    }
}