CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 b3.java 源代码,内容仅作参考
package y0;
import ak.im.utils.Log;
import com.asim.protobuf.Akeychat;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class b3 extends IQ {
private final String f48075a;
private Akeychat.MiYunCapacityResponse f48076b;
private String f48077c;
private boolean f48078d;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
b3 b3Var = new b3();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
b3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("miyuncapacity")) {
z10 = true;
}
}
return b3Var;
}
}
public b3(String str) {
super("miyuncapacity", "http://akey.im/protocol/xmpp/iq/miyuncapacity");
this.f48075a = b3.class.getSimpleName();
this.f48078d = true;
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (!this.f48078d) {
iQChildElementXmlStringBuilder.optElement("result", this.f48077c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.MiYunCapacityResponse getmResponse() {
return this.f48076b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48077c = text;
this.f48076b = Akeychat.MiYunCapacityResponse.parseFrom(e.e.decode(text));
Log.i(this.f48075a, "we get token result:" + this.f48076b);
} catch (Exception e10) {
e10.printStackTrace();
}
}
public b3() {
super("miyuncapacity", "http://akey.im/protocol/xmpp/iq/miyuncapacity");
this.f48075a = b3.class.getSimpleName();
}
}