CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 o4.java 源代码,内容仅作参考
package y0;
import ak.im.utils.Log;
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 o4 extends IQ {
private final String f48641a;
private Akeychat.GetSeaweedfsCapacityResponse f48642b;
private String f48643c;
private String f48644d;
private boolean f48645e;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
o4 o4Var = new o4();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
o4Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("seaweedfscapacity")) {
z10 = true;
}
}
return o4Var;
}
}
public o4(String str) {
super("seaweedfscapacity", "http://akey.im/protocol/xmpp/iq/seaweedfscapacity");
this.f48641a = o4.class.getSimpleName();
this.f48645e = true;
setType(IQ.Type.get);
this.f48644d = str;
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48645e) {
Akeychat.GetSeaweedfsCapacityRequest.b newBuilder = Akeychat.GetSeaweedfsCapacityRequest.newBuilder();
newBuilder.setSessionId(this.f48644d);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f48643c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.GetSeaweedfsCapacityResponse getmResponse() {
return this.f48642b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48643c = text;
this.f48642b = Akeychat.GetSeaweedfsCapacityResponse.parseFrom(e.e.decode(text));
Log.i(this.f48641a, "we get token result:" + this.f48642b);
} catch (Exception e10) {
e10.printStackTrace();
}
}
public o4() {
super("seaweedfscapacity", "http://akey.im/protocol/xmpp/iq/seaweedfscapacity");
this.f48641a = o4.class.getSimpleName();
}
}