CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 i.java 源代码,内容仅作参考
package y0;
import ak.im.utils.Log;
import android.util.SparseBooleanArray;
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 i extends y0.b {
private static final String f48341e = "i";
private SparseBooleanArray f48342a;
private Akeychat.AllInfoCheckResponse f48343b;
private String f48344c;
private boolean f48345d;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
i iVar = new i();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
iVar.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("allinfocheck")) {
z10 = true;
}
}
return iVar;
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
Akeychat.AllInfoCheckRequest.b newBuilder = Akeychat.AllInfoCheckRequest.newBuilder();
if (this.f48342a != null) {
newBuilder.setFileDescriptorProto(Akeychat.getDescriptor().toProto().toByteString());
for (int i10 = 0; i10 < this.f48342a.size(); i10++) {
int keyAt = this.f48342a.keyAt(i10);
if (keyAt != 1) {
if (keyAt != 2) {
if (keyAt != 3) {
if (keyAt != 4) {
if (keyAt == 5) {
newBuilder.setMucrooms(this.f48342a.get(keyAt));
}
} else {
newBuilder.setFriends(this.f48342a.get(keyAt));
}
} else {
newBuilder.setAkeyXiaomiInfo(this.f48342a.get(keyAt));
}
} else {
newBuilder.setPrivateInfo(this.f48342a.get(keyAt));
}
} else {
newBuilder.setPublicInfo(this.f48342a.get(keyAt));
}
}
}
if (this.f48345d) {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f48344c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.AllInfoCheckResponse getmAllCheckResponse() {
return this.f48343b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48344c = text;
this.f48343b = Akeychat.AllInfoCheckResponse.parseFrom(e.e.decode(text));
Log.i(f48341e, "we get result:" + this.f48343b.toString());
} catch (Exception e10) {
e10.printStackTrace();
Log.w(f48341e, "encounter exception when parse result:" + this.f48344c);
}
}
public i(SparseBooleanArray sparseBooleanArray, q1 q1Var) {
super("allinfocheck", "http://akey.im/protocol/xmpp/iq/allinfocheck", q1Var);
if (sparseBooleanArray != null) {
this.f48345d = true;
this.f48342a = sparseBooleanArray;
setType(IQ.Type.get);
return;
}
throw new IllegalArgumentException("sync info shouldnot be null");
}
private i() {
super("allinfocheck", "http://akey.im/protocol/xmpp/iq/allinfocheck", null);
}
}