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

以下内容为反编译后的 e.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 e extends IQ {

    private final String f48167a;

    private Akeychat.ActivateUserResponse f48168b;

    private String f48169c;

    private boolean f48170d;

    private String f48171e;

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

    public e(String str) {
        super("activateuser", "http://akey.im/protocol/xmpp/iq/activateuser");
        this.f48167a = e.class.getSimpleName();
        this.f48170d = true;
        this.f48171e = str;
        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.f48170d) {
            Akeychat.ActivateUserRequest.b newBuilder = Akeychat.ActivateUserRequest.newBuilder();
            newBuilder.setActivationCode(this.f48171e);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f48169c);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.ActivateUserResponse getmResponse() {
        return this.f48168b;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f48169c = text;
            this.f48168b = Akeychat.ActivateUserResponse.parseFrom(e.e.decode(text));
            Log.i(this.f48167a, "we activate user result:" + this.f48168b.toString());
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    public e() {
        super("activateuser", "http://akey.im/protocol/xmpp/iq/activateuser");
        this.f48167a = e.class.getSimpleName();
    }
}