CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 j1.java 源代码,内容仅作参考
package y0;
import ak.im.sdk.manager.bf;
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.Metadata;
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;
@Metadata(bv = {}, d1 = {"\u0000N\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\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\u0007\u0018\u00002\u00020\u0001:\u0002\u001d\u001eBU\b\u0016\u0012\u0006\u0010\f\u001a\u00020\u000b\u0012\u0006\u0010\u000e\u001a\u00020\r\u0012\u0006\u0010\u000f\u001a\u00020\u000b\u0012\u0006\u0010\u0011\u001a\u00020\u0010\u0012\b\u0010\u0012\u001a\u0004\u0018\u00010\u000b\u0012\b\u0010\u0014\u001a\u0004\u0018\u00010\u0013\u0012\u0006\u0010\u0015\u001a\u00020\r\u0012\u0006\u0010\u0017\u001a\u00020\u0016\u0012\u0006\u0010\u0019\u001a\u00020\u0018¢\u0006\u0004\b\u001a\u0010\u001bB\t\b\u0016¢\u0006\u0004\b\u001a\u0010\u001cJ\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\u001f"}, d2 = {"Ly0/j1;", "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$GetAWSUploadUrlResponse;", "getmResponse", "", "key", "", TypedValues.TransitionType.S_DURATION, "httpMethod", "Lcom/asim/protobuf/Akeychat$RecordType;", "recordType", "receiver", "Lcom/asim/protobuf/Akeychat$ChatType;", "chatType", "size", "Ly0/q1;", "ft", "", "attType", "<init>", "(Ljava/lang/String;JLjava/lang/String;Lcom/asim/protobuf/Akeychat$RecordType;Ljava/lang/String;Lcom/asim/protobuf/Akeychat$ChatType;JLy0/q1;I)V", "()V", "a", "b", "ak-im_carrotArmV7Release"}, k = 1, mv = {1, 6, 0})
public final class j1 extends IQ {
@NotNull
public static final a f48397l = new a(null);
@Nullable
private Akeychat.GetAWSUploadUrlResponse f48398a;
@Nullable
private String f48399b;
private boolean f48400c;
@NotNull
private String f48401d;
private long f48402e;
@NotNull
private String f48403f;
@Nullable
private Akeychat.RecordType f48404g;
@Nullable
private String f48405h;
@Nullable
private Akeychat.ChatType f48406i;
private long f48407j;
private int f48408k;
@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/j1$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/j1$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");
j1 j1Var = new j1();
boolean z10 = false;
while (!z10) {
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")) {
z10 = true;
}
}
return j1Var;
}
}
public j1(@NotNull String key, long j10, @NotNull String httpMethod, @NotNull Akeychat.RecordType recordType, @Nullable String str, @Nullable Akeychat.ChatType chatType, long j11, @NotNull q1 ft, int i10) {
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.f48408k = -1;
this.f48400c = true;
this.f48401d = key;
this.f48402e = j10;
this.f48403f = httpMethod;
this.f48404g = recordType;
if (ak.im.utils.q5.isContainsSplicer(str)) {
kotlin.jvm.internal.r.checkNotNull(str);
split$default = StringsKt__StringsKt.split$default((CharSequence) str, new String[]{"#"}, false, 0, 6, (Object) null);
this.f48405h = (String) split$default.get(0);
Akeychat.ServerSyncResponseV2 serverById = ak.im.sdk.manager.f1.getInstance().getServerById((String) split$default.get(1));
if (serverById != null) {
setTo(bf.getDomainJid(serverById.getDomain()));
} else {
this.f48405h = "";
Log.i("GetAwsUploadIQ", "serverById is null");
}
} else {
this.f48405h = str;
setTo(ft.getTo());
}
this.f48406i = chatType;
this.f48407j = j11;
setType(IQ.Type.get);
this.f48408k = i10;
}
@Override
@NotNull
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(@NotNull IQ.IQChildElementXmlStringBuilder xml) {
kotlin.jvm.internal.r.checkNotNullParameter(xml, "xml");
xml.append(">");
if (this.f48400c) {
Akeychat.GetAWSUploadUrlRequest.b newBuilder = Akeychat.GetAWSUploadUrlRequest.newBuilder();
newBuilder.setKey(this.f48401d);
newBuilder.setDuration(this.f48402e);
newBuilder.setHttpMethod(this.f48403f);
newBuilder.setType(this.f48404g);
newBuilder.setReceiver(this.f48405h);
newBuilder.setChatType(this.f48406i);
newBuilder.setSize(this.f48407j);
int i10 = this.f48408k;
if (i10 >= 0) {
newBuilder.setAttType(Akeychat.AttType.valueOf(i10));
}
xml.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
xml.optElement("result", this.f48399b);
}
return xml;
}
@Nullable
public final Akeychat.GetAWSUploadUrlResponse getF48398a() {
return this.f48398a;
}
public final void parseResults(@NotNull XmlPullParser parser) throws Exception {
kotlin.jvm.internal.r.checkNotNullParameter(parser, "parser");
try {
String text = parser.getText();
this.f48399b = text;
this.f48398a = Akeychat.GetAWSUploadUrlResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
}
}
public j1() {
super("aws_signed_url", "http://akey.im/protocol/xmpp/iq/aws_signed_url");
this.f48401d = "";
this.f48403f = "";
this.f48408k = -1;
this.f48400c = false;
}
}