CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 q3.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 java.util.List;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class q3 extends IQ {
private final String a;
List<String> f4607b;
private Akeychat.AddMucRoomSyncResponse f4608c;
public static class a extends IQProvider {
private final String a = "QueryUserIQ.Provider";
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
q3 q3Var = new q3();
Log.i("QueryUserIQ.Provider", "start parse io result in vcard");
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
q3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucroomquery")) {
z = true;
}
}
return q3Var;
}
}
public q3(List<String> list) {
super("mucroomquery", "http://akey.im/protocol/xmpp/iq/mucroomquery");
this.a = "QueryGroup";
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(ye.getInstance().getUsername() + "@" + ye.getInstance().getServer().getXmppDomain());
this.f4607b = list;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
Akeychat.AddMucRoomSyncRequest.b newBuilder = Akeychat.AddMucRoomSyncRequest.newBuilder();
newBuilder.addAllRoomNames(this.f4607b);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
return iQChildElementXmlStringBuilder;
}
public Akeychat.AddMucRoomSyncResponse getResponse() {
return this.f4608c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
Log.w("QueryGroup", "start parse result in vcard");
this.f4608c = Akeychat.AddMucRoomSyncResponse.parseFrom(ak.comm.d.decode(xmlPullParser.getText()));
Log.w("QueryGroup", "end parse result in vcard");
}
public q3() {
super("mucroomquery", "http://akey.im/protocol/xmpp/iq/mucroomquery");
this.a = "QueryGroup";
}
}