CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 l1.java 源代码,内容仅作参考
package y0;
import ak.im.uitls.AKCAppConfiguration;
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 f48479a;
private String f48480b;
private boolean f48481c;
private String f48482d;
private long f48483e;
private Akeychat.ChatType f48484f;
private int f48485g;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
l1 l1Var = new l1();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
l1Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("seaweedfschunksuploadtoken")) {
z10 = true;
}
}
return l1Var;
}
}
public l1(String str, long j10, Akeychat.ChatType chatType, int i10) {
super("seaweedfschunksuploadtoken", "http://akey.im/protocol/xmpp/iq/seaweedfschunksuploadtoken");
this.f48482d = str;
this.f48483e = j10;
this.f48481c = true;
this.f48484f = chatType;
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
this.f48485g = i10;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48481c) {
Akeychat.GetSeaweedfsUploadTokenRequest.b newBuilder = Akeychat.GetSeaweedfsUploadTokenRequest.newBuilder();
if (!TextUtils.isEmpty(this.f48482d)) {
newBuilder.setSessionId(this.f48482d);
newBuilder.setSize(this.f48483e);
newBuilder.setType(this.f48484f);
}
int i10 = this.f48485g;
if (i10 >= 0) {
newBuilder.setAttType(Akeychat.AttType.valueOf(i10));
}
newBuilder.setChunksizeWithBytes(AKCAppConfiguration.f9925a.seaweedChunkSize());
Log.debug("GetSeaweedUploadTokenIQ", "req " + newBuilder.build());
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f48480b);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.GetSeaweedfsUploadTokenResponse getmResponse() {
return this.f48479a;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48480b = text;
this.f48479a = Akeychat.GetSeaweedfsUploadTokenResponse.parseFrom(e.e.decode(text));
Log.debug("GetSeaweedUploadTokenIQ", "we get token result:" + this.f48479a);
} catch (Exception e10) {
e10.printStackTrace();
}
}
public l1() {
super("seaweedfschunksuploadtoken", "http://akey.im/protocol/xmpp/iq/seaweedfschunksuploadtoken");
}
}