CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 v0.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 v0 extends IQ {
private final String a;
private Akeychat.CancelUserSubResponse f4724b;
private String f4725c;
private String f4726d;
private String f4727e;
private String f;
private boolean g;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
v0 v0Var = new v0();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
v0Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("cancelusersubrequest")) {
z = true;
}
}
return v0Var;
}
}
public v0() {
super("cancelusersubrequest", "http://akey.im/protocol/xmpp/iq/cancelusersubrequest");
this.a = v0.class.getSimpleName();
this.g = true;
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.g) {
Akeychat.CancelUserSubRequest.b newBuilder = Akeychat.CancelUserSubRequest.newBuilder();
newBuilder.setReqid(this.f4726d);
newBuilder.setSmscode(this.f4727e);
newBuilder.setReason(this.f);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f4725c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.CancelUserSubResponse getmResponse() {
return this.f4724b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4725c = text;
this.f4724b = Akeychat.CancelUserSubResponse.parseFrom(ak.comm.d.decode(text));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public v0(String str, String str2, String str3) {
super("cancelusersubrequest", "http://akey.im/protocol/xmpp/iq/cancelusersubrequest");
this.a = v0.class.getSimpleName();
this.g = true;
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
this.f4726d = str;
this.f4727e = str2;
this.f = str3;
}
}