CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 r5.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 r5 extends IQ {
private final String f48770a;
private final String f48771b;
private Akeychat.MucSignInResetResponse f48772c;
boolean f48773d;
public static class b extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
r5 r5Var = new r5();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
r5Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucsignin")) {
z10 = true;
}
}
return r5Var;
}
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48773d) {
Akeychat.MucSignInResetRequest.b newBuilder = Akeychat.MucSignInResetRequest.newBuilder();
newBuilder.setMucroomname(this.f48771b);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f48772c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.MucSignInResetResponse getmUpdateResult() {
return this.f48772c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
this.f48772c = Akeychat.MucSignInResetResponse.parseFrom(e.e.decode(xmlPullParser.getText()));
Log.i("SignInfoExtension", "update reuslt:" + this.f48772c.getResult().getReturnCode());
} catch (Exception e10) {
Log.w("SignInfoExtension", "encounter excp in parse results" + e10.getMessage());
}
}
private r5() {
super("mucsignin", "http://akey.im/protocol/xmpp/iq/mucsignin#reset");
this.f48770a = "SignInfoExtension";
this.f48771b = null;
}
public r5(String str) {
super("mucsignin", "http://akey.im/protocol/xmpp/iq/mucsignin#reset");
this.f48770a = "SignInfoExtension";
setType(IQ.Type.set);
this.f48773d = true;
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(bf.getInstance().getUserMe().getJID());
this.f48771b = str;
}
}