CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e

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


package y0;

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 e4 extends IQ {

    private String f48198a;

    private String f48199b;

    private boolean f48200c;

    private long f48201d;

    private int f48202e;

    private Akeychat.MucVoteOptionResultResponse f48203f;

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

    public e4(String str, long j10, int i10) {
        super("mucvote", "http://akey.im/protocol/xmpp/iq/mucvote#optionresult");
        this.f48198a = str;
        this.f48201d = j10;
        this.f48202e = i10;
        this.f48200c = true;
        setType(IQ.Type.get);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f48200c) {
            Akeychat.MucVoteOptionResultRequest.b newBuilder = Akeychat.MucVoteOptionResultRequest.newBuilder();
            newBuilder.setMucroomname(this.f48198a);
            newBuilder.setMucVoteId(this.f48201d);
            newBuilder.setOptionIndex(this.f48202e);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f48199b);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.MucVoteOptionResultResponse getmResponse() {
        return this.f48203f;
    }

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

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f48199b = text;
            this.f48203f = Akeychat.MucVoteOptionResultResponse.parseFrom(e.e.decode(text));
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

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