CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 e1.java 源代码,内容仅作参考
package y0;
import android.text.TextUtils;
import androidx.constraintlayout.core.motion.utils.TypedValues;
import com.alibaba.fastjson.JSONObject;
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\u0002\b\u0002\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\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0016\u0018\u00002\u00020\u0001:\u0002\u0017\u0018B1\b\u0016\u0012\u0006\u0010\f\u001a\u00020\u000b\u0012\u0006\u0010\u000e\u001a\u00020\r\u0012\u0006\u0010\u0010\u001a\u00020\u000f\u0012\u0006\u0010\u0011\u001a\u00020\u000b\u0012\u0006\u0010\u0013\u001a\u00020\u0012¢\u0006\u0004\b\u0014\u0010\u0015B\t\b\u0016¢\u0006\u0004\b\u0014\u0010\u0016J\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\u0019"}, d2 = {"Ly0/e1;", "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$GetUploadToketResponse;", "getmResponse", "", TypedValues.TransitionType.S_DURATION, "", "scope", "Lcom/asim/protobuf/Akeychat$RecordType;", "recordType", "size", "Ly0/q1;", "ft", "<init>", "(JLjava/lang/String;Lcom/asim/protobuf/Akeychat$RecordType;JLy0/q1;)V", "()V", "a", "b", "ak-im_carrotArmV7Release"}, k = 1, mv = {1, 6, 0})
public class e1 extends IQ {
@NotNull
public static final a f48175l = new a(null);
private long f48176a;
@NotNull
private String f48177b;
@Nullable
private Akeychat.GetUploadToketResponse f48178c;
@NotNull
private final String f48179d;
@NotNull
private final String f48180e;
@NotNull
private final String f48181f;
@NotNull
private final String f48182g;
@Nullable
private String f48183h;
private boolean f48184i;
private long f48185j;
private Akeychat.RecordType f48186k;
@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/e1$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/e1$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");
e1 e1Var = new e1();
boolean z10 = false;
while (!z10) {
int next = parser.next();
if (next != 3) {
if (next == 4) {
e1Var.parseResults(parser);
}
} else if (kotlin.jvm.internal.r.areEqual(parser.getName(), "freeqiniuuploadtoken")) {
z10 = true;
}
}
return e1Var;
}
}
public e1(long j10, @NotNull String scope, @NotNull Akeychat.RecordType recordType, long j11, @NotNull q1 ft) {
super("freeqiniuuploadtoken", "http://akey.im/protocol/xmpp/iq/freeqiniuuploadtoken");
kotlin.jvm.internal.r.checkNotNullParameter(scope, "scope");
kotlin.jvm.internal.r.checkNotNullParameter(recordType, "recordType");
kotlin.jvm.internal.r.checkNotNullParameter(ft, "ft");
this.f48176a = -1L;
this.f48177b = "";
this.f48179d = "returnBody";
this.f48180e = "scope";
this.f48181f = "detectMime";
this.f48182g = "{\"key\":$(key),\"hash\":$(etag),\"size\":$(fsize),\"mimeType\":$(mimeType),\"width\":$(imageInfo.width),\"height\":$(imageInfo.height)}";
if (j10 >= 0) {
this.f48184i = true;
this.f48186k = recordType;
this.f48185j = j11;
this.f48176a = j10;
this.f48177b = scope;
setType(IQ.Type.get);
setTo(ft.getTo());
return;
}
throw new IllegalArgumentException("illegal params:" + j10);
}
@Override
@NotNull
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(@NotNull IQ.IQChildElementXmlStringBuilder xml) {
kotlin.jvm.internal.r.checkNotNullParameter(xml, "xml");
xml.append(">");
if (this.f48184i) {
Akeychat.GetFreeQiniuUploadTokenRequest.b newBuilder = Akeychat.GetFreeQiniuUploadTokenRequest.newBuilder();
if (this.f48176a != -1 && !TextUtils.isEmpty(this.f48177b)) {
JSONObject jSONObject = new JSONObject();
jSONObject.put((JSONObject) this.f48180e, this.f48177b);
jSONObject.put((JSONObject) this.f48181f, (String) 0);
jSONObject.put((JSONObject) this.f48179d, this.f48182g);
newBuilder.setPolicy(jSONObject.toJSONString());
newBuilder.setDuration(this.f48176a / 1000);
newBuilder.setSize(this.f48185j);
Akeychat.RecordType recordType = this.f48186k;
if (recordType == null) {
kotlin.jvm.internal.r.throwUninitializedPropertyAccessException("mRecordType");
recordType = null;
}
newBuilder.setType(recordType);
}
xml.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
xml.optElement("result", this.f48183h);
}
return xml;
}
@Nullable
public final Akeychat.GetUploadToketResponse getF48178c() {
return this.f48178c;
}
public final void parseResults(@NotNull XmlPullParser parser) throws Exception {
kotlin.jvm.internal.r.checkNotNullParameter(parser, "parser");
try {
String text = parser.getText();
this.f48183h = text;
this.f48178c = Akeychat.GetUploadToketResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
}
}
public e1() {
super("freeqiniuuploadtoken", "http://akey.im/protocol/xmpp/iq/freeqiniuuploadtoken");
this.f48176a = -1L;
this.f48177b = "";
this.f48179d = "returnBody";
this.f48180e = "scope";
this.f48181f = "detectMime";
this.f48182g = "{\"key\":$(key),\"hash\":$(etag),\"size\":$(fsize),\"mimeType\":$(mimeType),\"width\":$(imageInfo.width),\"height\":$(imageInfo.height)}";
}
}