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

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


package ak.smack;

import ak.im.sdk.manager.nf;
import ak.im.sdk.manager.ye;
import ak.im.utils.Log;
import androidx.constraintlayout.core.motion.utils.TypedValues;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.List;
import kotlin.text.StringsKt__StringsKt;
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 = {"\u0000\\\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u0000 '2\u00020\u0001:\u0002'(BS\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0003\u0012\u0006\u0010\u0007\u001a\u00020\b\u0012\b\u0010\t\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\n\u001a\u0004\u0018\u00010\u000b\u0012\u0006\u0010\f\u001a\u00020\u0005\u0012\u0006\u0010\r\u001a\u00020\u000e\u0012\u0006\u0010\u000f\u001a\u00020\u0010¢\u0006\u0002\u0010\u0011B\u0007\b\u0016¢\u0006\u0002\u0010\u0012J\u0010\u0010\u001f\u001a\u00020 2\u0006\u0010!\u001a\u00020 H\u0014J\b\u0010\"\u001a\u0004\u0018\u00010\u001cJ\u000e\u0010#\u001a\u00020$2\u0006\u0010%\u001a\u00020&R\u000e\u0010\u000f\u001a\u00020\u0010X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0013\u001a\u00020\u0014X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0015\u001a\u0004\u0018\u00010\u000bX\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0016\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0017\u001a\u00020\u0003X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0018\u001a\u00020\u0003X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0019\u001a\u0004\u0018\u00010\u0003X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u001a\u001a\u0004\u0018\u00010\bX\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u001b\u001a\u0004\u0018\u00010\u001cX\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u001d\u001a\u0004\u0018\u00010\u0003X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u001e\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006)"}, d2 = {"Lak/smack/GetAwsUploadIQ;", "Lorg/jivesoftware/smack/packet/IQ;", "key", "", TypedValues.TransitionType.S_DURATION, "", "httpMethod", "recordType", "Lcom/asim/protobuf/Akeychat$RecordType;", "receiver", "chatType", "Lcom/asim/protobuf/Akeychat$ChatType;", "size", "ft", "Lak/smack/IQFromTo;", "attType", "", "(Ljava/lang/String;JLjava/lang/String;Lcom/asim/protobuf/Akeychat$RecordType;Ljava/lang/String;Lcom/asim/protobuf/Akeychat$ChatType;JLak/smack/IQFromTo;I)V", "()V", "isSend", "", "mChatType", "mDuration", "mHttpMethod", "mKey", "mReceiver", "mRecordType", "mResponse", "Lcom/asim/protobuf/Akeychat$GetAWSUploadUrlResponse;", "mResult", "mSize", "getIQChildElementBuilder", "Lorg/jivesoftware/smack/packet/IQ$IQChildElementXmlStringBuilder;", "xml", "getmResponse", "parseResults", "", "parser", "Lorg/xmlpull/v1/XmlPullParser;", "Companion", "Provider", "ak-im_carrotArmV7Release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class j1 extends IQ {
    @NotNull
    public static final a a = new a(null);
    @Nullable
    private Akeychat.GetAWSUploadUrlResponse f4418b;
    @Nullable
    private String f4419c;
    private boolean f4420d;
    @NotNull
    private String f4421e;
    private long f;
    @NotNull
    private String g;
    @Nullable
    private Akeychat.RecordType h;
    @Nullable
    private String i;
    @Nullable
    private Akeychat.ChatType j;
    private long k;
    private int l;

    @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/GetAwsUploadIQ$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/GetAwsUploadIQ$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");
            j1 j1Var = new j1();
            boolean z = false;
            while (!z) {
                int next = parser.next();
                if (next != 3) {
                    if (next == 4) {
                        j1Var.parseResults(parser);
                    }
                } else if (kotlin.jvm.internal.r.areEqual(parser.getName(), "aws_signed_url")) {
                    z = true;
                }
            }
            return j1Var;
        }
    }

    public j1(@NotNull String key, long j, @NotNull String httpMethod, @NotNull Akeychat.RecordType recordType, @Nullable String str, @Nullable Akeychat.ChatType chatType, long j2, @NotNull q1 ft, int i) {
        super("aws_signed_url", "http://akey.im/protocol/xmpp/iq/aws_signed_url");
        List split$default;
        kotlin.jvm.internal.r.checkNotNullParameter(key, "key");
        kotlin.jvm.internal.r.checkNotNullParameter(httpMethod, "httpMethod");
        kotlin.jvm.internal.r.checkNotNullParameter(recordType, "recordType");
        kotlin.jvm.internal.r.checkNotNullParameter(ft, "ft");
        this.f4421e = "";
        this.g = "";
        this.l = -1;
        this.f4420d = true;
        this.f4421e = key;
        this.f = j;
        this.g = httpMethod;
        this.h = recordType;
        if (ak.im.utils.n5.isContainsSplicer(str)) {
            kotlin.jvm.internal.r.checkNotNull(str);
            split$default = StringsKt__StringsKt.split$default((CharSequence) str, new String[]{"#"}, false, 0, 6, (Object) null);
            this.i = (String) split$default.get(0);
            Akeychat.ServerSyncResponseV2 serverById = ye.getInstance().getServerById((String) split$default.get(1));
            if (serverById != null) {
                setTo(nf.getDomainJid(serverById.getDomain()));
            } else {
                this.i = "";
                Log.i("GetAwsUploadIQ", "serverById is null");
            }
        } else {
            this.i = str;
            setTo(ft.getTo());
        }
        this.j = chatType;
        this.k = j2;
        setType(IQ.Type.get);
        this.l = i;
    }

    @Override
    @NotNull
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(@NotNull IQ.IQChildElementXmlStringBuilder xml) {
        kotlin.jvm.internal.r.checkNotNullParameter(xml, "xml");
        xml.append(">");
        if (this.f4420d) {
            Akeychat.GetAWSUploadUrlRequest.b newBuilder = Akeychat.GetAWSUploadUrlRequest.newBuilder();
            newBuilder.setKey(this.f4421e);
            newBuilder.setDuration(this.f);
            newBuilder.setHttpMethod(this.g);
            newBuilder.setType(this.h);
            newBuilder.setReceiver(this.i);
            newBuilder.setChatType(this.j);
            newBuilder.setSize(this.k);
            int i = this.l;
            if (i >= 0) {
                newBuilder.setAttType(Akeychat.AttType.valueOf(i));
            }
            xml.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            xml.optElement("result", this.f4419c);
        }
        return xml;
    }

    @Nullable
    public final Akeychat.GetAWSUploadUrlResponse getmResponse() {
        return this.f4418b;
    }

    public final void parseResults(@NotNull XmlPullParser parser) throws Exception {
        kotlin.jvm.internal.r.checkNotNullParameter(parser, "parser");
        try {
            String text = parser.getText();
            this.f4419c = text;
            this.f4418b = Akeychat.GetAWSUploadUrlResponse.parseFrom(ak.comm.d.decode(text));
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    public j1() {
        super("aws_signed_url", "http://akey.im/protocol/xmpp/iq/aws_signed_url");
        this.f4421e = "";
        this.g = "";
        this.l = -1;
        this.f4420d = false;
    }
}