CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 a1.java 源代码,内容仅作参考
package ak.smack;
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 a1 extends ak.smack.b {
private final String a;
private final String f4183b;
Akeychat.SubscribeBotResponse f4184c;
private String f4185d;
private boolean f4186e;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
a1 a1Var = new a1();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
a1Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("subscribebot")) {
z = true;
}
}
return a1Var;
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4186e) {
Akeychat.SubscribeBotRequest.b newBuilder = Akeychat.SubscribeBotRequest.newBuilder();
newBuilder.setInnerId(this.f4183b);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
String str = this.f4185d;
if (str != null) {
iQChildElementXmlStringBuilder.optElement("result", str);
}
}
return iQChildElementXmlStringBuilder;
}
public String getResult() {
return this.f4185d;
}
public Akeychat.SubscribeBotResponse getmProtoResponse() {
return this.f4184c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
this.f4185d = xmlPullParser.getText();
Log.i("FollowBotIQ", "start parse result follow:" + this.f4185d);
this.f4184c = Akeychat.SubscribeBotResponse.parseFrom(ak.comm.d.decode(this.f4185d));
} catch (Exception e2) {
Log.w("FollowBotIQ", "encounter excp in parse results" + e2.getMessage());
}
}
private a1() {
super("subscribebot", "http://akey.im/protocol/xmpp/iq/subscribebot", null);
this.a = "FollowBotIQ";
this.f4183b = null;
}
public a1(String str, q1 q1Var) {
super("subscribebot", "http://akey.im/protocol/xmpp/iq/subscribebot", q1Var);
this.a = "FollowBotIQ";
setType(IQ.Type.set);
this.f4183b = str;
this.f4186e = true;
}
}