CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 l1.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.ye;
import ak.im.utils.Log;
import android.text.TextUtils;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class l1 extends IQ {
private Akeychat.GetSeaweedfsUploadTokenResponse a;
private String f4463b;
private boolean f4464c;
private String f4465d;
private long f4466e;
private Akeychat.ChatType f;
private int g;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
l1 l1Var = new l1();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
l1Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("seaweedfschunksuploadtoken")) {
z = true;
}
}
return l1Var;
}
}
public l1(String str, long j, Akeychat.ChatType chatType, int i) {
super("seaweedfschunksuploadtoken", "http://akey.im/protocol/xmpp/iq/seaweedfschunksuploadtoken");
this.f4465d = str;
this.f4466e = j;
this.f4464c = true;
this.f = chatType;
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
this.g = i;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4464c) {
Akeychat.GetSeaweedfsUploadTokenRequest.b newBuilder = Akeychat.GetSeaweedfsUploadTokenRequest.newBuilder();
if (!TextUtils.isEmpty(this.f4465d)) {
newBuilder.setSessionId(this.f4465d);
newBuilder.setSize(this.f4466e);
newBuilder.setType(this.f);
}
int i = this.g;
if (i >= 0) {
newBuilder.setAttType(Akeychat.AttType.valueOf(i));
}
Log.debug("GetSeaweedUploadTokenIQ", "req " + newBuilder.build());
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f4463b);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.GetSeaweedfsUploadTokenResponse getmResponse() {
return this.a;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4463b = text;
this.a = Akeychat.GetSeaweedfsUploadTokenResponse.parseFrom(ak.comm.d.decode(text));
Log.debug("GetSeaweedUploadTokenIQ", "we get token result:" + this.a);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public l1() {
super("seaweedfschunksuploadtoken", "http://akey.im/protocol/xmpp/iq/seaweedfschunksuploadtoken");
}
}