CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 i.java 源代码,内容仅作参考
package ak.smack;
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 ak.smack.b {
private static final String a = "i";
private SparseBooleanArray f4382b;
private Akeychat.AllInfoCheckResponse f4383c;
private String f4384d;
private boolean f4385e;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
i iVar = new i();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
iVar.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("allinfocheck")) {
z = true;
}
}
return iVar;
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
Akeychat.AllInfoCheckRequest.b newBuilder = Akeychat.AllInfoCheckRequest.newBuilder();
if (this.f4382b != null) {
newBuilder.setFileDescriptorProto(Akeychat.getDescriptor().toProto().toByteString());
for (int i = 0; i < this.f4382b.size(); i++) {
int keyAt = this.f4382b.keyAt(i);
if (keyAt == 1) {
newBuilder.setPublicInfo(this.f4382b.get(keyAt));
} else if (keyAt == 2) {
newBuilder.setPrivateInfo(this.f4382b.get(keyAt));
} else if (keyAt == 3) {
newBuilder.setAkeyXiaomiInfo(this.f4382b.get(keyAt));
} else if (keyAt == 4) {
newBuilder.setFriends(this.f4382b.get(keyAt));
} else if (keyAt == 5) {
newBuilder.setMucrooms(this.f4382b.get(keyAt));
}
}
}
if (this.f4385e) {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f4384d);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.AllInfoCheckResponse getmAllCheckResponse() {
return this.f4383c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4384d = text;
this.f4383c = Akeychat.AllInfoCheckResponse.parseFrom(ak.comm.d.decode(text));
String str = a;
Log.i(str, "we get result:" + this.f4383c.toString());
} catch (Exception e2) {
e2.printStackTrace();
String str2 = a;
Log.w(str2, "encounter exception when parse result:" + this.f4384d);
}
}
public i(SparseBooleanArray sparseBooleanArray, q1 q1Var) {
super("allinfocheck", "http://akey.im/protocol/xmpp/iq/allinfocheck", q1Var);
if (sparseBooleanArray != null) {
this.f4385e = true;
this.f4382b = 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);
}
}