CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 m2.java 源代码,内容仅作参考
package y0;
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 f48530a;
private String f48531b;
private List<Akeychat.AttachmentInfo> f48532c;
private String f48533d;
private boolean f48534e;
private Akeychat.VisiblePersonnel f48535f;
private Akeychat.MucReviewCreateResponse f48536g;
List<Akeychat.MucReviewItem> f48537h;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
m2 m2Var = new m2();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
m2Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mucreview")) {
z10 = 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.f48530a = str;
this.f48531b = str2;
this.f48532c = list;
this.f48534e = true;
this.f48535f = visiblePersonnel;
this.f48537h = list2;
setType(IQ.Type.set);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f48534e) {
Akeychat.MucReviewCreateRequest.b newBuilder = Akeychat.MucReviewCreateRequest.newBuilder();
newBuilder.setMucroomname(this.f48530a);
newBuilder.setSubject(this.f48531b);
List<Akeychat.MucReviewItem> list = this.f48537h;
if (list != null) {
newBuilder.addAllMucReviewItemList(list);
}
newBuilder.setVisiblePersonnel(this.f48535f);
List<Akeychat.AttachmentInfo> list2 = this.f48532c;
if (list2 != null) {
newBuilder.addAllAttachmentList(list2);
}
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, this.f48533d);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.MucReviewCreateResponse getmResponse() {
return this.f48536g;
}
public String getmResult() {
return this.f48533d;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f48533d = text;
this.f48536g = Akeychat.MucReviewCreateResponse.parseFrom(e.e.decode(text));
} catch (Exception e10) {
e10.printStackTrace();
}
}
public m2() {
super("mucreview", "http://akey.im/protocol/xmpp/iq/mucreview#create");
}
}