CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e

以下内容为反编译后的 v.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 v extends IQ {

    private final String f48909a;

    private boolean f48910b;

    private String f48911c;

    private String f48912d;

    private long f48913e;

    private long f48914f;

    private String f48915g;

    private Akeychat.ResultSortType f48916h;

    private String f48917i;

    private Akeychat.CapacityManagementGetResponse f48918j;

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

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

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f48910b) {
            Akeychat.CapacityManagementGetRequest.b newBuilder = Akeychat.CapacityManagementGetRequest.newBuilder();
            newBuilder.setName(this.f48911c);
            if ("session_groupchat".equals(this.f48912d)) {
                newBuilder.setType(Akeychat.ChatType.GroupChat);
            } else if ("session_singlechat".equals(this.f48912d)) {
                newBuilder.setType(Akeychat.ChatType.SingleChat);
            }
            newBuilder.setIndex(this.f48913e);
            newBuilder.setLen(this.f48914f);
            String str = this.f48915g;
            if (str != null) {
                newBuilder.setFilter(str);
            }
            newBuilder.setSortType(this.f48916h);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f48917i);
        }
        return iQChildElementXmlStringBuilder;
    }

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

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f48917i = text;
            this.f48918j = Akeychat.CapacityManagementGetResponse.parseFrom(e.e.decode(text));
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    public v(String str, String str2, long j10, long j11, String str3, Akeychat.ResultSortType resultSortType) {
        super("capacitymanagement", "http://akey.im/protocol/xmpp/iq/capacitymanagement");
        this.f48909a = "CapacityManageAttachQuery";
        this.f48911c = str;
        this.f48912d = str2;
        this.f48913e = j10;
        this.f48914f = j11;
        this.f48915g = str3;
        this.f48916h = resultSortType;
        this.f48910b = true;
        setType(IQ.Type.get);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
    }
}