CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 x2.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 x2 extends IQ {
private Akeychat.ChatSessionMessageStatusGetResponse f49006a;
private String f49007b;
private long f49008c;
private long f49009d;
private String f49010e;
private boolean f49011f;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
x2 x2Var = new x2();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
x2Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("sessionmessagestatus")) {
z10 = true;
}
}
return x2Var;
}
}
public x2(String str, long j10, long j11) {
super("sessionmessagestatus", "http://akey.im/protocol/xmpp/iq/sessionmessagestatus");
this.f49011f = true;
this.f49007b = str;
this.f49008c = ak.im.utils.j3.cut32Protobuf(j10);
this.f49009d = ak.im.utils.j3.cut32Protobuf(j11);
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
Log.d("PullSessionMessageStatus", "PullSessionMessageStatus Rang:" + String.format("%s|{%d,%d}", str, Long.valueOf(j10), Long.valueOf(j11)));
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f49011f) {
Akeychat.ChatSessionMessageStatusGetRequest.b newBuilder = Akeychat.ChatSessionMessageStatusGetRequest.newBuilder();
newBuilder.setSessionId(this.f49007b);
newBuilder.setFirstMessageSeqNo(this.f49008c);
newBuilder.setLastMessageSeqNo(this.f49009d);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f49010e);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.ChatSessionMessageStatusGetResponse getmResponse() {
return this.f49006a;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f49010e = text;
this.f49006a = Akeychat.ChatSessionMessageStatusGetResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
}
}
public x2() {
super("sessionmessagestatus", "http://akey.im/protocol/xmpp/iq/sessionmessagestatus");
}
}