CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e
以下内容为反编译后的 y1.java 源代码,内容仅作参考
package y0;
import ak.im.utils.Log;
import android.text.TextUtils;
import com.asim.protobuf.Akeychat;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.ArrayList;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;
public class y1 extends IQ {
private final String f49032a;
private boolean f49033b;
private String f49034c;
private String f49035d;
private String f49036e;
private Akeychat.McuType f49037f;
private ArrayList<String> f49038g;
private ArrayList<String> f49039h;
private String f49040i;
private Akeychat.McuInviteResponse f49041j;
public static class a extends IQProvider {
@Override
public IQ parse(XmlPullParser xmlPullParser, int i10) throws Exception {
y1 y1Var = new y1();
boolean z10 = false;
while (!z10) {
int next = xmlPullParser.next();
if (next == 4) {
y1Var.parseResults(xmlPullParser);
} else if (next == 3 && xmlPullParser.getName().equals("mcuinviterequest")) {
z10 = true;
}
}
return y1Var;
}
}
public y1(String str, String str2, ArrayList<String> arrayList, Akeychat.McuType mcuType, ArrayList<String> arrayList2, String str3) {
super("mcuinviterequest", "http://akey.im/protocol/xmpp/iq/mcuinviterequest");
this.f49032a = "MCUPushRequestExtension";
this.f49033b = true;
this.f49034c = str;
this.f49038g = arrayList;
this.f49039h = arrayList2;
this.f49037f = mcuType;
this.f49036e = str2;
this.f49040i = str3;
setType(IQ.Type.get);
setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
setFrom(ak.im.utils.q5.getJidByName(ak.im.sdk.manager.f1.getInstance().getUsername()));
Log.i("lwxtest", "name is " + str3);
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.append(">");
if (this.f49033b) {
Akeychat.McuInviteRequest.b newBuilder = Akeychat.McuInviteRequest.newBuilder();
newBuilder.setCallId(this.f49034c);
newBuilder.setSubject(this.f49036e);
newBuilder.addAllMemberlist(this.f49038g);
newBuilder.addAllPushlist(this.f49039h);
newBuilder.setType(this.f49037f);
if (!TextUtils.isEmpty(this.f49040i)) {
newBuilder.setGroupname(this.f49040i);
}
iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
} else {
iQChildElementXmlStringBuilder.optElement("result", this.f49035d);
}
return iQChildElementXmlStringBuilder;
}
public Akeychat.McuInviteResponse getmResponse() {
return this.f49041j;
}
protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
try {
String text = xmlPullParser.getText();
this.f49035d = text;
this.f49041j = Akeychat.McuInviteResponse.parseFrom(e.e.decode(text));
Log.i("MCUPushRequestExtension", "we get VoIP invite request result:" + this.f49041j);
} catch (Exception e10) {
e10.printStackTrace();
}
}
public y1() {
super("mcuinviterequest", "http://akey.im/protocol/xmpp/iq/mcuinviterequest");
this.f49032a = "MCUPushRequestExtension";
this.f49033b = false;
}
}