CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 o3.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.nf;
import ak.im.sdk.manager.ye;
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 o3 extends IQ {
private Akeychat.SimpleUserInfoResponse a;
private String f4561b;
private boolean f4562c;
private String f4563d;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
o3 o3Var = new o3();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
o3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("get_feedback_user_info")) {
z = true;
}
}
return o3Var;
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4562c) {
Akeychat.SimpleUserInfoResquest.b newBuilder = Akeychat.SimpleUserInfoResquest.newBuilder();
newBuilder.setUsername(this.f4563d);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
String str = this.f4561b;
if (str != null) {
iQChildElementXmlStringBuilder.optElement("result", str);
}
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.SimpleUserInfoResponse getmResponse() {
return this.a;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4561b = text;
this.a = Akeychat.SimpleUserInfoResponse.parseFrom(ak.comm.d.decode(text));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public o3(String str) {
super("get_feedback_user_info", "http://akey.im/protocol/xmpp/iq/get_feedback_user_info");
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(nf.getInstance().getUserMe().getJID());
this.f4562c = true;
this.f4563d = str;
}
private o3() {
super("get_feedback_user_info", "http://akey.im/protocol/xmpp/iq/get_feedback_user_info");
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(nf.getInstance().getUserMe().getJID());
this.f4562c = false;
}
}