CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 r4.java 源代码,内容仅作参考
package y0;
import ak.im.sdk.manager.bf;
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 r4 extends IQ {
private final String f48767a;
private Akeychat.MucroomBasicGetResponse f48768b;
private String f48769c;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
r4 r4Var = new r4();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
r4Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucroombasic")) {
z10 = true;
}
}
return r4Var;
}
}
public r4() {
super("mucroombasic", "http://akey.im/protocol/xmpp/iq/mucroombasic");
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(bf.getInstance().getUserMe().getJID());
this.f48767a = null;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48767a != null) {
Akeychat.MucroomBasicGetRequest.b newBuilder = Akeychat.MucroomBasicGetRequest.newBuilder();
newBuilder.setFilter(this.f48767a);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.MucroomBasicGetResponse getStrangerMucroomsResponse() {
return this.f48768b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48769c = text;
this.f48768b = Akeychat.MucroomBasicGetResponse.parseFrom(e.e.decode(text));
Log.i("QueryStrangeMucrooms", "result:" + this.f48768b.getResult() + " userList:" + this.f48768b.getMucroomsList().toString());
} catch (Exception e10) {
e10.printStackTrace();
}
}
public r4(String str) {
super("mucroombasic", "http://akey.im/protocol/xmpp/iq/mucroombasic");
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(bf.getInstance().getUserMe().getJID());
this.f48767a = str;
}
}