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

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


package ak.smack;

import ak.im.utils.Log;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
@kotlin.j(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u0000 \u001e2\u00020\u0001:\u0002\u001e\u001fB\u0007\b\u0016¢\u0006\u0002\u0010\u0002B'\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\b\u001a\u00020\t¢\u0006\u0002\u0010\nJ\u0010\u0010\u0017\u001a\u00020\u00182\u0006\u0010\u0019\u001a\u00020\u0018H\u0014J\u0010\u0010\u001a\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0002R\u000e\u0010\u000b\u001a\u00020\fX\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\r\u001a\u0004\u0018\u00010\u0006X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u000e\u001a\u0004\u0018\u00010\tX\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u000f\u001a\u0004\u0018\u00010\u0006X\u0082\u000e¢\u0006\u0002\n\u0000R\u001c\u0010\u0010\u001a\u0004\u0018\u00010\u0011X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R\u0010\u0010\u0016\u001a\u0004\u0018\u00010\u0006X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006 "}, d2 = {"Lak/smack/CheckASKeyDataIQ;", "Lorg/jivesoftware/smack/packet/IQ;", "()V", "fromTo", "Lak/smack/IQFromTo;", "name", "", "passCode", "operateType", "Lcom/asim/protobuf/Akeychat$SecurityOperate;", "(Lak/smack/IQFromTo;Ljava/lang/String;Ljava/lang/String;Lcom/asim/protobuf/Akeychat$SecurityOperate;)V", "mIsSend", "", "mName", "mOperateType", "mPassCode", "mResponse", "Lcom/asim/protobuf/Akeychat$CheckPasscodeResponse;", "getMResponse", "()Lcom/asim/protobuf/Akeychat$CheckPasscodeResponse;", "setMResponse", "(Lcom/asim/protobuf/Akeychat$CheckPasscodeResponse;)V", "mResult", "getIQChildElementBuilder", "Lorg/jivesoftware/smack/packet/IQ$IQChildElementXmlStringBuilder;", "xml", "parseResults", "", "parser", "Lorg/xmlpull/v1/XmlPullParser;", "Companion", "Provider", "ak-im_carrotArmV7Release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class z extends IQ {
    @NotNull
    public static final a a = new a(null);
    private boolean f4817b;
    @Nullable
    private String f4818c;
    @Nullable
    private String f4819d;
    @Nullable
    private String f4820e;
    @Nullable
    private Akeychat.SecurityOperate f;
    @Nullable
    private Akeychat.CheckPasscodeResponse g;

    @kotlin.j(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000¨\u0006\u0007"}, d2 = {"Lak/smack/CheckASKeyDataIQ$Companion;", "", "()V", "ELEMENT", "", "NAMESPACE", "TAG", "ak-im_carrotArmV7Release"}, k = 1, mv = {1, 6, 0}, xi = 48)
    public static final class a {
        private a() {
        }

        public a(kotlin.jvm.internal.o oVar) {
            this();
        }
    }

    @kotlin.j(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u0018\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0016¨\u0006\t"}, d2 = {"Lak/smack/CheckASKeyDataIQ$Provider;", "Lorg/jivesoftware/smack/provider/IQProvider;", "Lorg/jivesoftware/smack/packet/IQ;", "()V", "parse", "parser", "Lorg/xmlpull/v1/XmlPullParser;", "initDepth", "", "ak-im_carrotArmV7Release"}, k = 1, mv = {1, 6, 0}, xi = 48)
    public static final class b extends IQProvider<IQ> {
        @Override
        @NotNull
        public IQ parse(@NotNull XmlPullParser parser, int i) throws Exception {
            kotlin.jvm.internal.r.checkNotNullParameter(parser, "parser");
            z zVar = new z();
            boolean z = false;
            while (!z) {
                int next = parser.next();
                if (next != 3) {
                    if (next == 4) {
                        zVar.parseResults(parser);
                    }
                } else if (kotlin.jvm.internal.r.areEqual(parser.getName(), "checkaskeydata")) {
                    z = true;
                }
            }
            return zVar;
        }
    }

    public z() {
        super("checkaskeydata", "http://akey.im/protocol/xmpp/iq/checkaskeydata");
        this.f4817b = false;
    }

    public final void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f4818c = text;
            this.g = Akeychat.CheckPasscodeResponse.parseFrom(ak.comm.d.decode(text));
        } catch (Exception e2) {
            e2.printStackTrace();
            Log.w("CheckASKeyDataIQ", kotlin.jvm.internal.r.stringPlus("encounter excp in parse results", e2.getMessage()));
        }
    }

    @Override
    @NotNull
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(@NotNull IQ.IQChildElementXmlStringBuilder xml) {
        kotlin.jvm.internal.r.checkNotNullParameter(xml, "xml");
        xml.append(">");
        if (this.f4817b) {
            Akeychat.CheckPasscodeRequest.b newBuilder = Akeychat.CheckPasscodeRequest.newBuilder();
            newBuilder.setUsername(this.f4819d);
            newBuilder.setPasscode(this.f4820e);
            newBuilder.setOperate(this.f);
            xml.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            String str = this.f4818c;
            if (str != null) {
                xml.optElement("result", str);
            }
        }
        return xml;
    }

    @Nullable
    public final Akeychat.CheckPasscodeResponse getMResponse() {
        return this.g;
    }

    public final void setMResponse(@Nullable Akeychat.CheckPasscodeResponse checkPasscodeResponse) {
        this.g = checkPasscodeResponse;
    }

    public z(@NotNull q1 fromTo, @NotNull String name, @NotNull String passCode, @NotNull Akeychat.SecurityOperate operateType) {
        super("checkaskeydata", "http://akey.im/protocol/xmpp/iq/checkaskeydata");
        kotlin.jvm.internal.r.checkNotNullParameter(fromTo, "fromTo");
        kotlin.jvm.internal.r.checkNotNullParameter(name, "name");
        kotlin.jvm.internal.r.checkNotNullParameter(passCode, "passCode");
        kotlin.jvm.internal.r.checkNotNullParameter(operateType, "operateType");
        setType(IQ.Type.get);
        setTo(fromTo.getTo());
        setFrom(fromTo.getFrom());
        this.f4819d = name;
        this.f4820e = passCode;
        this.f = operateType;
        this.f4817b = true;
    }
}