CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 t4.java 源代码,内容仅作参考
package ak.smack;
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 t4 extends IQ {
private Akeychat.GroupUnconfirmedTopMessageGetResponse a;
private String f4686b;
private long f4687c;
private long f4688d;
private String f4689e;
private boolean f;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
t4 t4Var = new t4();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
t4Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("sessiongrouptopmessagequery")) {
z = true;
}
}
return t4Var;
}
}
public t4(String str, long j, long j2) {
super("sessiongrouptopmessagequery", "http://akey.im/protocol/xmpp/iq/sessiongrouptopmessagequery");
this.f = true;
this.f4686b = str;
this.f4687c = j;
this.f4688d = j2;
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f) {
Log.d("QueryUnconfirmedTopMsgIQ", this.f4686b + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + this.f4687c + HiAnalyticsConstant.REPORT_VAL_SEPARATOR + this.f4688d);
Akeychat.GroupUnconfirmedTopMessageGetRequest.b newBuilder = Akeychat.GroupUnconfirmedTopMessageGetRequest.newBuilder();
newBuilder.setSessionId(this.f4686b);
newBuilder.setMessageSeqNo(this.f4687c);
newBuilder.setLen(this.f4688d);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", "pull some messages ");
}
return iQChildElementXmlStringBuilder;
}
public long getmOffset() {
return this.f4688d;
}
public Akeychat.GroupUnconfirmedTopMessageGetResponse getmResponse() {
return this.a;
}
public long getmSeqNO() {
return this.f4687c;
}
public String getmSessionId() {
return this.f4686b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4689e = text;
this.a = Akeychat.GroupUnconfirmedTopMessageGetResponse.parseFrom(ak.comm.d.decode(text));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public t4() {
super("sessiongrouptopmessagequery", "http://akey.im/protocol/xmpp/iq/sessiongrouptopmessagequery");
}
}