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

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


package ak.smack;

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\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\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 \u001a2\u00020\u0001:\u0002\u001a\u001bB\u001f\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bB\u0007\b\u0016¢\u0006\u0002\u0010\tJ\u0010\u0010\u0012\u001a\u00020\u00132\u0006\u0010\u0014\u001a\u00020\u0013H\u0014J\b\u0010\u0015\u001a\u0004\u0018\u00010\rJ\u000e\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u0019R\u000e\u0010\n\u001a\u00020\u000bX\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\f\u001a\u0004\u0018\u00010\rX\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u000e\u001a\u0004\u0018\u00010\u000fX\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0010\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0011\u001a\u0004\u0018\u00010\u0003X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u001c"}, d2 = {"Lak/smack/FreeSeaweedUploadTokenIQ;", "Lorg/jivesoftware/smack/packet/IQ;", "type", "Lcom/asim/protobuf/Akeychat$RecordType;", "size", "", "ft", "Lak/smack/IQFromTo;", "(Lcom/asim/protobuf/Akeychat$RecordType;JLak/smack/IQFromTo;)V", "()V", "isSend", "", "mResponse", "Lcom/asim/protobuf/Akeychat$GetSeaweedfsUploadTokenResponse;", "mResult", "", "mSize", "mType", "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 f1 extends IQ {
    @NotNull
    public static final a a = new a(null);
    @Nullable
    private Akeychat.GetSeaweedfsUploadTokenResponse f4301b;
    @Nullable
    private String f4302c;
    private boolean f4303d;
    @Nullable
    private Akeychat.RecordType f4304e;
    private long f;

    @kotlin.j(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\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\u0000¨\u0006\u0006"}, d2 = {"Lak/smack/FreeSeaweedUploadTokenIQ$Companion;", "", "()V", "ELEMENT", "", "NAMESPACE", "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/FreeSeaweedUploadTokenIQ$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");
            f1 f1Var = new f1();
            boolean z = false;
            while (!z) {
                int next = parser.next();
                if (next != 3) {
                    if (next == 4) {
                        f1Var.parseResults(parser);
                    }
                } else if (kotlin.jvm.internal.r.areEqual(parser.getName(), "freeseaweedfschunksuploadtoken")) {
                    z = true;
                }
            }
            return f1Var;
        }
    }

    public f1(@NotNull Akeychat.RecordType type, long j, @NotNull q1 ft) {
        super("freeseaweedfschunksuploadtoken", "http://akey.im/protocol/xmpp/iq/freeseaweedfschunksuploadtoken");
        kotlin.jvm.internal.r.checkNotNullParameter(type, "type");
        kotlin.jvm.internal.r.checkNotNullParameter(ft, "ft");
        this.f4303d = true;
        this.f4304e = type;
        this.f = j;
        setType(IQ.Type.get);
        setTo(ft.getTo());
    }

    @Override
    @NotNull
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(@NotNull IQ.IQChildElementXmlStringBuilder xml) {
        kotlin.jvm.internal.r.checkNotNullParameter(xml, "xml");
        xml.append(">");
        if (this.f4303d) {
            Akeychat.GetFreeSeaweedfsUploadTokenRequest.b newBuilder = Akeychat.GetFreeSeaweedfsUploadTokenRequest.newBuilder();
            newBuilder.setType(this.f4304e);
            newBuilder.setSize(this.f);
            xml.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            xml.optElement("result", this.f4302c);
        }
        return xml;
    }

    @Nullable
    public final Akeychat.GetSeaweedfsUploadTokenResponse getmResponse() {
        return this.f4301b;
    }

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

    public f1() {
        super("freeseaweedfschunksuploadtoken", "http://akey.im/protocol/xmpp/iq/freeseaweedfschunksuploadtoken");
        this.f4303d = false;
    }
}