CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 w2.java 源代码,内容仅作参考
package y0;
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 w2 extends IQ {
private Akeychat.ChatSessionMessageGetResponse f48967a;
private String f48968b;
private long f48969c;
private long f48970d;
private String f48971e;
private boolean f48972f;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
w2 w2Var = new w2();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
w2Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("sessionmessage")) {
z10 = true;
}
}
return w2Var;
}
}
public w2(String str, long j10, long j11) {
super("sessionmessage", "http://akey.im/protocol/xmpp/iq/sessionmessage");
this.f48972f = true;
this.f48968b = str;
this.f48969c = ak.im.utils.j3.cut32Protobuf(j10);
this.f48970d = j11;
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.f48972f) {
Akeychat.ChatSessionMessageGetRequest.b newBuilder = Akeychat.ChatSessionMessageGetRequest.newBuilder();
newBuilder.setSessionId(this.f48968b);
newBuilder.setMessageSeqNo(this.f48969c);
newBuilder.setLen(this.f48970d);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", "pull some messages ");
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.ChatSessionMessageGetResponse getmResponse() {
return this.f48967a;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48971e = text;
this.f48967a = Akeychat.ChatSessionMessageGetResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
}
}
public w2() {
super("sessionmessage", "http://akey.im/protocol/xmpp/iq/sessionmessage");
}
}