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

以下内容为反编译后的 o2.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 o2 extends IQ {
    private String a;
    private String f4557b;
    private boolean f4558c;
    private long f4559d;
    private Akeychat.MucVoteCloseResponse f4560e;

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

    public o2(String str, long j) {
        super("mucvote", "http://akey.im/protocol/xmpp/iq/mucvote#close");
        this.a = str;
        this.f4559d = j;
        this.f4558c = true;
        setType(IQ.Type.set);
        setTo(ye.getInstance().getServer().getXmppDomain());
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f4558c) {
            Akeychat.MucVoteCloseRequest.b newBuilder = Akeychat.MucVoteCloseRequest.newBuilder();
            newBuilder.setMucroomname(this.a);
            newBuilder.setMucVoteId(this.f4559d);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, this.f4557b);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.MucVoteCloseResponse getmResponse() {
        return this.f4560e;
    }

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

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

    public o2() {
        super("mucvote", "http://akey.im/protocol/xmpp/iq/mucvote#close");
    }
}