CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 e0.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 org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class e0 extends IQ {
private final String a;
private final String f4273b;
private Akeychat.OpBaseResult f4274c;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
e0 e0Var = new e0();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
e0Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("cleanallmessageforuser")) {
z = true;
}
}
return e0Var;
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4273b != null) {
Akeychat.CleanAllMessageForUserRequest.b newBuilder = Akeychat.CleanAllMessageForUserRequest.newBuilder();
newBuilder.setUsername(this.f4273b);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.OpBaseResult getmDelSessionResult() {
return this.f4274c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4274c = Akeychat.OpBaseResult.parseFrom(ak.comm.d.decode(text));
Log.i("ClearAllMessageIQ", "parse result text:" + text);
} catch (Exception e2) {
Log.w("ClearAllMessageIQ", "encounter excp in parse results" + e2.getMessage());
}
}
private e0() {
super("cleanallmessageforuser", "http://akey.im/protocol/xmpp/iq/cleanallmessageforuser");
this.a = "ClearAllMessageIQ";
setType(IQ.Type.set);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(nf.getInstance().getUserMe().getJID());
this.f4273b = null;
}
public e0(String str) {
super("cleanallmessageforuser", "http://akey.im/protocol/xmpp/iq/cleanallmessageforuser");
this.a = "ClearAllMessageIQ";
setType(IQ.Type.set);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(nf.getInstance().getUserMe().getJID());
this.f4273b = str;
}
}