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

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

    private static final String f48510e = "l6";

    private Akeychat.UserPublicSetRequest.b f48511a;

    private String f48512b;

    private Akeychat.UserPublicSetResponse f48513c;

    boolean f48514d;

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

    public l6(Akeychat.UserPublicSetRequest.b bVar) {
        super("userpublicinfo", "http://akey.im/protocol/xmpp/iq/userpublicinfo");
        this.f48514d = true;
        setType(IQ.Type.set);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
        this.f48511a = bVar;
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f48514d) {
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(this.f48511a.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, this.f48512b);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.UserPublicSetResponse getUserPublicSetResponse() {
        return this.f48513c;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f48512b = text;
            this.f48513c = Akeychat.UserPublicSetResponse.parseFrom(e.e.decode(text));
            Log.i(f48510e, "we get result:" + this.f48512b + " return_code :" + this.f48513c.getResult().getReturnCode() + ",ver_code:" + this.f48513c.getVersioncode() + " description:" + this.f48513c.getResult().getDescription());
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    public l6() {
        super("userpublicinfo", "http://akey.im/protocol/xmpp/iq/userpublicinfo");
    }
}