CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 n5.java 源代码,内容仅作参考
package y0;
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 n5 extends IQ {
private static String f48600e;
private static String f48601f;
private static String f48602g;
private static String f48603h;
private static String f48604i;
private final String f48605a;
private String f48606b;
private Akeychat.UserPublicSetResponse f48607c;
private boolean f48608d;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
n5 n5Var = new n5();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
n5Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("setsecuritypasscode")) {
z10 = true;
}
}
return n5Var;
}
}
public n5() {
super("setsecuritypasscode", "http://akey.im/protocol/xmpp/iq/setsecuritypasscode");
this.f48605a = "SetSecurityPasscodeIQ";
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48608d) {
Akeychat.SetSecurityPasscode.b newBuilder = Akeychat.SetSecurityPasscode.newBuilder();
newBuilder.setUsername(f48600e);
newBuilder.setSecuritySwitch(f48601f);
newBuilder.setSn(f48602g);
newBuilder.setPasscode(f48603h);
newBuilder.setKeydata(f48604i);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f48606b);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.UserPublicSetResponse getResponse() {
return this.f48607c;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48606b = text;
this.f48607c = Akeychat.UserPublicSetResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
}
}
public n5(String str, String str2, String str3, String str4, String str5) {
super("setsecuritypasscode", "http://akey.im/protocol/xmpp/iq/setsecuritypasscode");
this.f48605a = "SetSecurityPasscodeIQ";
this.f48608d = true;
setType(IQ.Type.set);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(ak.im.sdk.manager.f1.getInstance().getUsername() + "@" + ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
f48600e = str;
f48601f = str2;
f48602g = str3;
f48603h = str4;
f48604i = str5;
}
}