CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 n5.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.ye;
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 a;
private static String f4537b;
private static String f4538c;
private static String f4539d;
private static String f4540e;
private static String f;
private final String g;
private String h;
private Akeychat.UserPublicSetResponse i;
private boolean j;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
n5 n5Var = new n5();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
n5Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("setsoftshield")) {
z = true;
}
}
return n5Var;
}
}
public n5() {
super("setsoftshield", "http://akey.im/protocol/xmpp/iq/setsoftshield");
this.g = "SetSoftShieldIQ";
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.j) {
Akeychat.SetSoftShield.b newBuilder = Akeychat.SetSoftShield.newBuilder();
newBuilder.setUsername(f4537b);
newBuilder.setSecuritySwitch(f4538c);
newBuilder.setSn(f4539d);
newBuilder.setPasscode(f4540e);
newBuilder.setKeydata(f);
newBuilder.setPublicKey(a);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.h);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.UserPublicSetResponse getResponse() {
return this.i;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.h = text;
this.i = Akeychat.UserPublicSetResponse.parseFrom(ak.comm.d.decode(text));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public n5(String str, String str2, String str3, String str4, String str5, String str6) {
super("setsoftshield", "http://akey.im/protocol/xmpp/iq/setsoftshield");
this.g = "SetSoftShieldIQ";
this.j = true;
setType(IQ.Type.set);
setTo(ye.getInstance().getServer().getXmppDomain());
setFrom(ye.getInstance().getUsername() + "@" + ye.getInstance().getServer().getXmppDomain());
a = str;
f4537b = str2;
f4538c = str3;
f4539d = str4;
f4540e = str5;
f = str6;
}
}