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

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


package ak.smack;

import ak.im.sdk.manager.ye;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.List;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class x0 extends IQ {
    private String a;
    private String f4773b;
    private long f4774c;
    private List<Integer> f4775d;
    private String f4776e;
    private String f;
    private boolean g;
    private Akeychat.MucVoteResponse h;

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

    public x0(String str, String str2, long j, List<Integer> list, String str3) {
        super("mucvote", "http://akey.im/protocol/xmpp/iq/mucvote#vote");
        this.a = str;
        this.f4773b = str2;
        this.f4774c = j;
        this.f4775d = list;
        this.f4776e = str3;
        this.g = true;
        setType(IQ.Type.set);
        setTo(ye.getInstance().getServer().getXmppDomain());
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.g) {
            Akeychat.MucVoteRequest.b newBuilder = Akeychat.MucVoteRequest.newBuilder();
            newBuilder.setMucroomname(this.a);
            newBuilder.setMucVoteId(this.f4774c);
            Akeychat.UserMucVoteResult.b newBuilder2 = Akeychat.UserMucVoteResult.newBuilder();
            newBuilder2.setVoter(this.f4773b);
            newBuilder2.addAllOptionIndex(this.f4775d);
            newBuilder2.setFeedback(this.f4776e);
            newBuilder.setMyVotedResult(newBuilder2.build());
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, this.f);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.MucVoteResponse getmResponse() {
        return this.h;
    }

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

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

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