CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 w3.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 w3 extends IQ {
private final String f48973a;
private Akeychat.ChatSessionLastClearInfoGetResponse f48974b;
private String f48975c;
private boolean f48976d;
private String f48977e;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
w3 w3Var = new w3();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
w3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("chatsessionlastclearinfo")) {
z10 = true;
}
}
return w3Var;
}
}
public w3() {
super("chatsessionlastclearinfo", "http://akey.im/protocol/xmpp/iq/chatsessionlastclearinfo");
this.f48973a = w3.class.getSimpleName();
this.f48976d = true;
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48976d) {
Akeychat.ChatSessionLastClearInfoGetRequest.b newBuilder = Akeychat.ChatSessionLastClearInfoGetRequest.newBuilder();
newBuilder.setSessionId(this.f48977e);
Log.debug(this.f48973a, "外显 we get req:" + newBuilder.build());
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f48975c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.ChatSessionLastClearInfoGetResponse getmResponse() {
return this.f48974b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48975c = text;
this.f48974b = Akeychat.ChatSessionLastClearInfoGetResponse.parseFrom(e.e.decode(text));
Log.debug(this.f48973a, "外显 we get token result:" + this.f48974b);
} catch (Exception e10) {
e10.printStackTrace();
}
}
public w3(String str) {
super("chatsessionlastclearinfo", "http://akey.im/protocol/xmpp/iq/chatsessionlastclearinfo");
this.f48973a = w3.class.getSimpleName();
this.f48976d = true;
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
this.f48977e = str;
}
}