CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 g2.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 g2 extends IQ {
private final String f48266a;
private String f48267b;
private long f48268c;
private boolean f48269d;
private String f48270e;
private Akeychat.MiyunDirectoryModifyResponse f48271f;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
g2 g2Var = new g2();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
g2Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("miyundirectorymodify")) {
z10 = true;
}
}
return g2Var;
}
}
public g2() {
super("miyundirectorymodify", "http://akey.im/protocol/xmpp/iq/miyundirectorymodify");
this.f48266a = "MiYunDirectoryModify";
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48269d) {
Akeychat.MiyunDirectoryModifyRequest.b newBuilder = Akeychat.MiyunDirectoryModifyRequest.newBuilder();
newBuilder.setName(this.f48267b);
newBuilder.setDirectoryId(this.f48268c);
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f48270e);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.MiyunDirectoryModifyResponse getResponse() {
return this.f48271f;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48270e = text;
this.f48271f = Akeychat.MiyunDirectoryModifyResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
}
}
public g2(String str, long j10) {
super("miyundirectorymodify", "http://akey.im/protocol/xmpp/iq/miyundirectorymodify");
this.f48266a = "MiYunDirectoryModify";
this.f48269d = true;
this.f48267b = str;
this.f48268c = j10;
setType(IQ.Type.set);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
}
}