CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05

以下内容为反编译后的 v.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 v extends IQ {
    private final String a;
    private boolean f4720b;
    private String f4721c;
    private String f4722d;
    private long f4723e;
    private long f;
    private String g;
    private Akeychat.ResultSortType h;
    private String i;
    private Akeychat.CapacityManagementGetResponse j;

    public static class a extends IQProvider {
        @Override
        public IQ parse(XmlPullParser xmlPullParser, int i) throws Exception {
            v vVar = new v();
            boolean z = false;
            while (!z) {
                int next = xmlPullParser.next();
                if (next == 4) {
                    vVar.parseResults(xmlPullParser);
                } else if (next == 3 && xmlPullParser.getName().equals("capacitymanagement")) {
                    z = true;
                }
            }
            return vVar;
        }
    }

    public v() {
        super("capacitymanagement", "http://akey.im/protocol/xmpp/iq/capacitymanagement");
        this.a = "CapacityManageAttachQuery";
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f4720b) {
            Akeychat.CapacityManagementGetRequest.b newBuilder = Akeychat.CapacityManagementGetRequest.newBuilder();
            newBuilder.setName(this.f4721c);
            if ("session_groupchat".equals(this.f4722d)) {
                newBuilder.setType(Akeychat.ChatType.GroupChat);
            } else if ("session_singlechat".equals(this.f4722d)) {
                newBuilder.setType(Akeychat.ChatType.SingleChat);
            }
            newBuilder.setIndex(this.f4723e);
            newBuilder.setLen(this.f);
            String str = this.g;
            if (str != null) {
                newBuilder.setFilter(str);
            }
            newBuilder.setSortType(this.h);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, ak.comm.d.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.i);
        }
        return iQChildElementXmlStringBuilder;
    }

    public Akeychat.CapacityManagementGetResponse getResponse() {
        return this.j;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.i = text;
            this.j = Akeychat.CapacityManagementGetResponse.parseFrom(ak.comm.d.decode(text));
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    public v(String str, String str2, long j, long j2, String str3, Akeychat.ResultSortType resultSortType) {
        super("capacitymanagement", "http://akey.im/protocol/xmpp/iq/capacitymanagement");
        this.a = "CapacityManageAttachQuery";
        this.f4721c = str;
        this.f4722d = str2;
        this.f4723e = j;
        this.f = j2;
        this.g = str3;
        this.h = resultSortType;
        this.f4720b = true;
        setType(IQ.Type.get);
        setTo(ye.getInstance().getServer().getXmppDomain());
    }
}