CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 x.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.nf;
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 x extends b {
private final String a;
private String f4769b;
Akeychat.ChangedFeedbackSessionResponse f4770c;
private long f4771d;
private boolean f4772e;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
x xVar = new x();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
xVar.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("changed_feedback_session")) {
z = true;
}
}
return xVar;
}
}
public x(long j) {
super("changed_feedback_session", "http://akey.im/protocol/xmpp/iq/changed_feedback_session", nf.getIQFromTo());
this.a = "ChangedFeedbackSyncIQ";
setType(IQ.Type.get);
this.f4772e = true;
this.f4771d = j;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4772e) {
Akeychat.ChangedFeedbackSessionRequest.b newBuilder = Akeychat.ChangedFeedbackSessionRequest.newBuilder();
newBuilder.setLastTimeStamp(this.f4771d);
Log.debug("ChangedFeedbackSyncIQ", "changedMessageSyncRequestBuilder " + newBuilder.build());
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.ChangedFeedbackSessionResponse getmMessageSyncResponse() {
return this.f4770c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4769b = text;
this.f4770c = Akeychat.ChangedFeedbackSessionResponse.parseFrom(ak.comm.d.decode(text));
Log.debug("ChangedFeedbackSyncIQ", "changed_feedback_session:" + this.f4770c);
} catch (Exception e2) {
this.f4770c = null;
e2.printStackTrace();
}
}
public x() {
super("changed_feedback_session", "http://akey.im/protocol/xmpp/iq/changed_feedback_session", null);
this.a = "ChangedFeedbackSyncIQ";
}
}