CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 p5.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.nf;
import ak.im.sdk.manager.ye;
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 p5 extends IQ {
private final String a;
private final String f4593b;
private Akeychat.MucSignInResetResponse f4594c;
boolean f4595d;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
p5 p5Var = new p5();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
p5Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucsignin")) {
z = true;
}
}
return p5Var;
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4595d) {
Akeychat.MucSignInResetRequest.b newBuilder = Akeychat.MucSignInResetRequest.newBuilder();
newBuilder.setMucroomname(this.f4593b);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f4594c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.MucSignInResetResponse getmUpdateResult() {
return this.f4594c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
this.f4594c = Akeychat.MucSignInResetResponse.parseFrom(ak.comm.d.decode(xmlPullParser.getText()));
Log.i("SignInfoExtension", "update reuslt:" + this.f4594c.getResult().getReturnCode());
} catch (Exception e2) {
Log.w("SignInfoExtension", "encounter excp in parse results" + e2.getMessage());
}
}
private p5() {
super("mucsignin", "http://akey.im/protocol/xmpp/iq/mucsignin#reset");
this.a = "SignInfoExtension";
this.f4593b = null;
}
public p5(String str) {
super("mucsignin", "http://akey.im/protocol/xmpp/iq/mucsignin#reset");
this.a = "SignInfoExtension";
setType(IQ.Type.set);
this.f4595d = true;
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(nf.getInstance().getUserMe().getJID());
this.f4593b = str;
}
}