CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 w5.java 源代码,内容仅作参考
package y0;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.List;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class w5 extends IQ {
private Akeychat.GroupTopMessageConfirmResponse f48983a;
private String f48984b;
private List<Long> f48985c;
private String f48986d;
private boolean f48987e;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
w5 w5Var = new w5();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
w5Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("sessiongrouptopmessageconfirm")) {
z10 = true;
}
}
return w5Var;
}
}
public w5(String str, List<Long> list) {
super("sessiongrouptopmessageconfirm", "http://akey.im/protocol/xmpp/iq/sessiongrouptopmessageconfirm");
this.f48987e = true;
this.f48984b = str;
this.f48985c = list;
setType(IQ.Type.set);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48987e) {
Akeychat.GroupTopMessageConfirmRequest.b newBuilder = Akeychat.GroupTopMessageConfirmRequest.newBuilder();
newBuilder.setSessionId(this.f48984b);
newBuilder.addAllSeqNos(this.f48985c);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", "pull some messages ");
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.GroupTopMessageConfirmResponse getmResponse() {
return this.f48983a;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48986d = text;
this.f48983a = Akeychat.GroupTopMessageConfirmResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
}
}
public w5() {
super("sessiongrouptopmessageconfirm", "http://akey.im/protocol/xmpp/iq/sessiongrouptopmessageconfirm");
}
}