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

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


package y0;

import ak.im.utils.Log;
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 i3 extends IQ {

    private final String f48368a;

    private Akeychat.ComplainDetailsResponse f48369b;

    private String f48370c;

    private boolean f48371d;

    private String f48372e;

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

    public i3() {
        super("complain_details", "http://akey.im/protocol/xmpp/iq/complain_details");
        this.f48368a = i3.class.getSimpleName();
        this.f48371d = 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.f48371d) {
            Akeychat.ComplainDetailsRequest.b newBuilder = Akeychat.ComplainDetailsRequest.newBuilder();
            newBuilder.setId(this.f48372e);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f48370c);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.ComplainDetailsResponse getmResponse() {
        return this.f48369b;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f48370c = text;
            this.f48369b = Akeychat.ComplainDetailsResponse.parseFrom(e.e.decode(text));
            Log.i(this.f48368a, "result is " + this.f48369b.toString());
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    public i3(String str) {
        super("complain_details", "http://akey.im/protocol/xmpp/iq/complain_details");
        this.f48368a = i3.class.getSimpleName();
        this.f48371d = true;
        setType(IQ.Type.get);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
        this.f48372e = str;
    }
}