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

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


package y0;

import ak.im.utils.Log;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import kotlin.Metadata;
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;

@Metadata(bv = {}, d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u0001:\u0002\u001a\u001bB\t\b\u0016¢\u0006\u0004\b\u0010\u0010\u0011B)\b\u0016\u0012\u0006\u0010\u0013\u001a\u00020\u0012\u0012\u0006\u0010\u0015\u001a\u00020\u0014\u0012\u0006\u0010\u0016\u001a\u00020\u0014\u0012\u0006\u0010\u0018\u001a\u00020\u0017¢\u0006\u0004\b\u0010\u0010\u0019J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\u0010\u0010\b\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0006H\u0014R$\u0010\n\u001a\u0004\u0018\u00010\t8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000f¨\u0006\u001c"}, d2 = {"Ly0/z;", "Lorg/jivesoftware/smack/packet/IQ;", "Lorg/xmlpull/v1/XmlPullParser;", "parser", "Lkd/s;", "parseResults", "Lorg/jivesoftware/smack/packet/IQ$IQChildElementXmlStringBuilder;", "xml", "getIQChildElementBuilder", "Lcom/asim/protobuf/Akeychat$CheckPasscodeResponse;", "mResponse", "Lcom/asim/protobuf/Akeychat$CheckPasscodeResponse;", "getMResponse", "()Lcom/asim/protobuf/Akeychat$CheckPasscodeResponse;", "setMResponse", "(Lcom/asim/protobuf/Akeychat$CheckPasscodeResponse;)V", "<init>", "()V", "Ly0/q1;", "fromTo", "", "name", "passCode", "Lcom/asim/protobuf/Akeychat$SecurityOperate;", "operateType", "(Ly0/q1;Ljava/lang/String;Ljava/lang/String;Lcom/asim/protobuf/Akeychat$SecurityOperate;)V", "a", "b", "ak-im_carrotArmV7Release"}, k = 1, mv = {1, 6, 0})
public final class z extends IQ {

    @NotNull
    public static final a f49079g = new a(null);

    private boolean f49080a;

    @Nullable
    private String f49081b;

    @Nullable
    private String f49082c;

    @Nullable
    private String f49083d;

    @Nullable
    private Akeychat.SecurityOperate f49084e;

    @Nullable
    private Akeychat.CheckPasscodeResponse f49085f;

    @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0007\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0007\u0010\bR\u0014\u0010\u0003\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0014\u0010\u0005\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0005\u0010\u0004R\u0014\u0010\u0006\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0006\u0010\u0004¨\u0006\t"}, d2 = {"Ly0/z$a;", "", "", "ELEMENT", "Ljava/lang/String;", "NAMESPACE", "TAG", "<init>", "()V", "ak-im_carrotArmV7Release"}, k = 1, mv = {1, 6, 0})
    public static final class a {
        private a() {
        }

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

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

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

    public final void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f49081b = text;
            this.f49085f = Akeychat.CheckPasscodeResponse.parseFrom(e.e.decode(text));
        } catch (Exception e10) {
            e10.printStackTrace();
            Log.w("CheckASKeyDataIQ", "encounter excp in parse results" + e10.getMessage());
        }
    }

    @Override
    @NotNull
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(@NotNull IQ.IQChildElementXmlStringBuilder xml) {
        kotlin.jvm.internal.r.checkNotNullParameter(xml, "xml");
        xml.append(">");
        if (this.f49080a) {
            Akeychat.CheckPasscodeRequest.b newBuilder = Akeychat.CheckPasscodeRequest.newBuilder();
            newBuilder.setUsername(this.f49082c);
            newBuilder.setPasscode(this.f49083d);
            newBuilder.setOperate(this.f49084e);
            xml.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            String str = this.f49081b;
            if (str != null) {
                xml.optElement("result", str);
            }
        }
        return xml;
    }

    @Nullable
    public final Akeychat.CheckPasscodeResponse getF49085f() {
        return this.f49085f;
    }

    public final void setMResponse(@Nullable Akeychat.CheckPasscodeResponse checkPasscodeResponse) {
        this.f49085f = 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.f49082c = name;
        this.f49083d = passCode;
        this.f49084e = operateType;
        this.f49080a = true;
    }
}