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

以下内容为反编译后的 c1.java 源代码,内容仅作参考


package y0;

import ak.im.sdk.manager.bf;
import ak.im.utils.Log;
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 c1 extends IQ {

    private final String f48101a;

    private final String f48102b;

    Akeychat.SubscribeChannelResponse f48103c;

    private String f48104d;

    private boolean f48105e;

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

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f48105e) {
            Akeychat.SubscribeChannelRequest.b newBuilder = Akeychat.SubscribeChannelRequest.newBuilder();
            newBuilder.setInnerId(this.f48102b);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            String str = this.f48104d;
            if (str != null) {
                iQChildElementXmlStringBuilder.optElement("result", str);
            }
        }
        return iQChildElementXmlStringBuilder;
    }

    public String getResult() {
        return this.f48104d;
    }

    public Akeychat.SubscribeChannelResponse getmProtoResponse() {
        return this.f48103c;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            this.f48104d = xmlPullParser.getText();
            Log.i("FollowChannelIQ", "start parse result follow:" + this.f48104d);
            this.f48103c = Akeychat.SubscribeChannelResponse.parseFrom(e.e.decode(this.f48104d));
        } catch (Exception e10) {
            Log.w("FollowChannelIQ", "encounter excp in parse results" + e10.getMessage());
        }
    }

    private c1() {
        super("subscribechannel", "http://akey.im/protocol/xmpp/iq/subscribechannel");
        this.f48101a = "FollowChannelIQ";
        this.f48102b = null;
    }

    public c1(String str) {
        super("subscribechannel", "http://akey.im/protocol/xmpp/iq/subscribechannel");
        this.f48101a = "FollowChannelIQ";
        setType(IQ.Type.set);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
        setFrom(bf.getInstance().getUserMe().getJID());
        this.f48102b = str;
        this.f48105e = true;
    }
}