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

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


package y0;

import ak.im.uitls.AKCAppConfiguration;
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 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\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\u0007\u0018\u00002\u00020\u0001:\u0002\u0014\u0015B!\b\u0016\u0012\u0006\u0010\f\u001a\u00020\u000b\u0012\u0006\u0010\u000e\u001a\u00020\r\u0012\u0006\u0010\u0010\u001a\u00020\u000f¢\u0006\u0004\b\u0011\u0010\u0012B\t\b\u0016¢\u0006\u0004\b\u0011\u0010\u0013J\u0010\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0002H\u0014J\u000e\u0010\b\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0005J\b\u0010\n\u001a\u0004\u0018\u00010\t¨\u0006\u0016"}, d2 = {"Ly0/f1;", "Lorg/jivesoftware/smack/packet/IQ;", "Lorg/jivesoftware/smack/packet/IQ$IQChildElementXmlStringBuilder;", "xml", "getIQChildElementBuilder", "Lorg/xmlpull/v1/XmlPullParser;", "parser", "Lkd/s;", "parseResults", "Lcom/asim/protobuf/Akeychat$GetSeaweedfsUploadTokenResponse;", "getmResponse", "Lcom/asim/protobuf/Akeychat$RecordType;", "type", "", "size", "Ly0/q1;", "ft", "<init>", "(Lcom/asim/protobuf/Akeychat$RecordType;JLy0/q1;)V", "()V", "a", "b", "ak-im_carrotArmV7Release"}, k = 1, mv = {1, 6, 0})
public final class f1 extends IQ {

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

    @Nullable
    private Akeychat.GetSeaweedfsUploadTokenResponse f48217a;

    @Nullable
    private String f48218b;

    private boolean f48219c;

    @Nullable
    private Akeychat.RecordType f48220d;

    private long f48221e;

    @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0006\u0010\u0007R\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\u0004¨\u0006\b"}, d2 = {"Ly0/f1$a;", "", "", "ELEMENT", "Ljava/lang/String;", "NAMESPACE", "<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/f1$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");
            f1 f1Var = new f1();
            boolean z10 = false;
            while (!z10) {
                int next = parser.next();
                if (next != 3) {
                    if (next == 4) {
                        f1Var.parseResults(parser);
                    }
                } else if (kotlin.jvm.internal.r.areEqual(parser.getName(), "freeseaweedfschunksuploadtoken")) {
                    z10 = true;
                }
            }
            return f1Var;
        }
    }

    public f1(@NotNull Akeychat.RecordType type, long j10, @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.f48219c = true;
        this.f48220d = type;
        this.f48221e = j10;
        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.f48219c) {
            Akeychat.GetFreeSeaweedfsUploadTokenRequest.b newBuilder = Akeychat.GetFreeSeaweedfsUploadTokenRequest.newBuilder();
            newBuilder.setType(this.f48220d);
            newBuilder.setSize(this.f48221e);
            newBuilder.setChunksizeWithBytes(AKCAppConfiguration.f9925a.seaweedChunkSize());
            xml.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            xml.optElement("result", this.f48218b);
        }
        return xml;
    }

    @Nullable
    public final Akeychat.GetSeaweedfsUploadTokenResponse getF48217a() {
        return this.f48217a;
    }

    public final void parseResults(@NotNull XmlPullParser parser) throws Exception {
        kotlin.jvm.internal.r.checkNotNullParameter(parser, "parser");
        try {
            String text = parser.getText();
            this.f48218b = text;
            this.f48217a = Akeychat.GetSeaweedfsUploadTokenResponse.parseFrom(e.e.decode(text));
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

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