CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 m2.java 源代码,内容仅作参考
package ak.smack;
import ak.im.sdk.manager.ye;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.List;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class m2 extends IQ {
private String a;
private String f4497b;
private List<Akeychat.AttachmentInfo> f4498c;
private String f4499d;
private boolean f4500e;
private Akeychat.VisiblePersonnel f;
private Akeychat.MucReviewCreateResponse g;
List<Akeychat.MucReviewItem> h;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
m2 m2Var = new m2();
boolean z = false;
while (!z) {
int next = xmlPullParser.next();
if (next == 4) {
m2Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucreview")) {
z = true;
}
}
return m2Var;
}
}
public m2(String str, String str2, List<Akeychat.AttachmentInfo> list, Akeychat.VisiblePersonnel visiblePersonnel, List<Akeychat.MucReviewItem> list2) {
super("mucreview", "http://akey.im/protocol/xmpp/iq/mucreview#create");
this.a = str;
this.f4497b = str2;
this.f4498c = list;
this.f4500e = true;
this.f = visiblePersonnel;
this.h = list2;
setType(IQ.Type.set);
setTo(ye.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f4500e) {
Akeychat.MucReviewCreateRequest.b newBuilder = Akeychat.MucReviewCreateRequest.newBuilder();
newBuilder.setMucroomname(this.a);
newBuilder.setSubject(this.f4497b);
List<Akeychat.MucReviewItem> list = this.h;
if (list != null) {
newBuilder.addAllMucReviewItemList(list);
}
newBuilder.setVisiblePersonnel(this.f);
List<Akeychat.AttachmentInfo> list2 = this.f4498c;
if (list2 != null) {
newBuilder.addAllAttachmentList(list2);
}
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, this.f4499d);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.MucReviewCreateResponse getmResponse() {
return this.g;
}
public String getmResult() {
return this.f4499d;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f4499d = text;
this.g = Akeychat.MucReviewCreateResponse.parseFrom(ak.comm.d.decode(text));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public m2() {
super("mucreview", "http://akey.im/protocol/xmpp/iq/mucreview#create");
}
}