CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 c5.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 c5 extends IQ {
private final String a;
private Akeychat.LicenseOrderCreateResponse f4242b;
private String f4243c;
private boolean f4244d;
private Akeychat.OrderType f4245e;
private Akeychat.PayType f;
private long g;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
c5 c5Var = new c5();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
c5Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("licensepay")) {
z = true;
}
}
return c5Var;
}
}
public c5(Akeychat.OrderType orderType, Akeychat.PayType payType, long j) {
super("licensepay", "http://akey.im/protocol/xmpp/iq/licenseorder");
this.a = c5.class.getSimpleName();
this.f4244d = true;
this.f4245e = orderType;
this.f = payType;
this.g = j;
setType(IQ.Type.get);
setTo(ye.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4244d) {
Akeychat.LicenseOrderCreateRequest.b newBuilder = Akeychat.LicenseOrderCreateRequest.newBuilder();
newBuilder.setOrderType(this.f4245e);
newBuilder.setPayType(this.f);
newBuilder.setCount(this.g);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f4243c);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.LicenseOrderCreateResponse getmResponse() {
return this.f4242b;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4243c = text;
this.f4242b = Akeychat.LicenseOrderCreateResponse.parseFrom(ak.comm.d.decode(text));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public c5() {
super("licensepay", "http://akey.im/protocol/xmpp/iq/licenseorder");
this.a = c5.class.getSimpleName();
}
}