CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 p0.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.nf;
import ak.im.sdk.manager.ye;
import ak.im.utils.Log;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.List;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class p0 extends IQ {
private final String a;
private final String f4576b;
private List<Long> f4577c;
private Akeychat.ChatMessageDeleteResponse f4578d;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
p0 p0Var = new p0();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
p0Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("singlechatmessage")) {
z = true;
}
}
return p0Var;
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
List<Long> list;
iQChildElementXmlStringBuilder.append(">");
if (this.f4576b != null && (list = this.f4577c) != null && list.size() > 0) {
Akeychat.ChatMessageDeleteRequest.b newBuilder = Akeychat.ChatMessageDeleteRequest.newBuilder();
newBuilder.setSessionId(this.f4576b);
for (int i = 0; i < this.f4577c.size(); i++) {
newBuilder.addSeqNos(this.f4577c.get(i).longValue());
}
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.ChatMessageDeleteResponse getmDelSingleMsgResult() {
return this.f4578d;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4578d = Akeychat.ChatMessageDeleteResponse.parseFrom(ak.comm.d.decode(text));
Log.i("DelSingleChatMsgExtension", "parse result text:" + text);
} catch (Exception e2) {
Log.w("DelSingleChatMsgExtension", "encounter excp in parse results" + e2.getMessage());
}
}
private p0() {
super("singlechatmessage", "http://akey.im/protocol/xmpp/iq/singlechatmessage#delete");
this.a = "DelSingleChatMsgExtension";
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(nf.getInstance().getUserMe().getJID());
this.f4576b = null;
this.f4577c = null;
}
public p0(String str, List<Long> list) {
super("singlechatmessage", "http://akey.im/protocol/xmpp/iq/singlechatmessage#delete");
this.a = "DelSingleChatMsgExtension";
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(nf.getInstance().getUserMe().getJID());
this.f4576b = str;
this.f4577c = list;
}
}