CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 q3.java 源代码,内容仅作参考
package y0;
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 f48722a;
List<String> f48723b;
private Akeychat.AddMucRoomSyncResponse f48724c;
public static class a extends IQProvider {
private final String f48725a = "QueryUserIQ.Provider";
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
q3 q3Var = new q3();
Log.i("QueryUserIQ.Provider", "start parse io result in vcard");
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
q3Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucroomquery")) {
z10 = true;
}
}
return q3Var;
}
}
public q3(List<String> list) {
super("mucroomquery", "http://akey.im/protocol/xmpp/iq/mucroomquery");
this.f48722a = "QueryGroup";
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(ak.im.sdk.manager.f1.getInstance().getUsername() + "@" + ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
this.f48723b = list;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
Akeychat.AddMucRoomSyncRequest.b newBuilder = Akeychat.AddMucRoomSyncRequest.newBuilder();
newBuilder.addAllRoomNames(this.f48723b);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
return iQChildElementXmlStringBuilder;
}
public Akeychat.AddMucRoomSyncResponse getResponse() {
return this.f48724c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
Log.w("QueryGroup", "start parse result in vcard");
this.f48724c = Akeychat.AddMucRoomSyncResponse.parseFrom(e.e.decode(xmlPullParser.getText()));
Log.w("QueryGroup", "end parse result in vcard");
}
public q3() {
super("mucroomquery", "http://akey.im/protocol/xmpp/iq/mucroomquery");
this.f48722a = "QueryGroup";
}
}