CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 m.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 m extends IQ {
private final String f48515a;
String f48516b;
String f48517c;
private Akeychat.CustomerAskResponse f48518d;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
m mVar = new m();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
mVar.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("customer_ask")) {
z10 = true;
}
}
return mVar;
}
}
public m(String str, String str2) {
super("customer_ask", "http://akey.im/protocol/xmpp/iq/customer_ask");
this.f48515a = "AskAi";
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(ak.im.sdk.manager.f1.getInstance().getUsername() + "@" + ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
this.f48516b = str;
this.f48517c = str2;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
Akeychat.CustomerAskRequest.b newBuilder = Akeychat.CustomerAskRequest.newBuilder();
newBuilder.setContent(this.f48516b);
newBuilder.setSessionId(this.f48517c);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
return iQChildElementXmlStringBuilder;
}
public Akeychat.CustomerAskResponse getResponse() {
return this.f48518d;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
this.f48518d = Akeychat.CustomerAskResponse.parseFrom(e.e.decode(xmlPullParser.getText()));
Log.w("AskAi", "response: " + this.f48518d);
}
public m() {
super("customer_ask", "http://akey.im/protocol/xmpp/iq/customer_ask");
this.f48515a = "AskAi";
}
}