CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 k2.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 k2 extends IQ {
private Akeychat.AttentionMessageManagementResponse f48445a;
private String f48446b;
private List<Long> f48447c;
private String f48448d;
boolean f48449e;
private boolean f48450f;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
k2 k2Var = new k2();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
k2Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("attentionmessagemanagement")) {
z10 = true;
}
}
return k2Var;
}
}
public k2(String str, List<Long> list, boolean z10) {
super("attentionmessagemanagement", "http://akey.im/protocol/xmpp/iq/attentionmessagemanagement");
this.f48450f = true;
this.f48446b = str;
this.f48447c = list;
this.f48449e = z10;
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.f48450f) {
Akeychat.AttentionMessageManagementRequest.b newBuilder = Akeychat.AttentionMessageManagementRequest.newBuilder();
newBuilder.setSessionId(this.f48446b);
newBuilder.addAllSeqNos(this.f48447c);
newBuilder.setCancel(this.f48449e);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", "pull some messages ");
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.AttentionMessageManagementResponse getmResponse() {
return this.f48445a;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48448d = text;
this.f48445a = Akeychat.AttentionMessageManagementResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
}
}
public k2() {
super("attentionmessagemanagement", "http://akey.im/protocol/xmpp/iq/attentionmessagemanagement");
}
}