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

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

    private final String f48162a;

    private final String f48163b;

    Akeychat.UnSubscribeChannelResponse f48164c;

    private String f48165d;

    private boolean f48166e;

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

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
        iQChildElementXmlStringBuilder.append(">");
        if (this.f48166e) {
            Akeychat.UnSubscribeChannelRequest.b newBuilder = Akeychat.UnSubscribeChannelRequest.newBuilder();
            newBuilder.setInnerId(this.f48163b);
            iQChildElementXmlStringBuilder.optElement(HiAnalyticsConstant.Direction.REQUEST, e.e.encodeBytes(newBuilder.build().toByteArray()));
        } else {
            iQChildElementXmlStringBuilder.optElement("result", this.f48165d);
        }
        return iQChildElementXmlStringBuilder;
    }

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

    public Akeychat.UnSubscribeChannelResponse getmProtoResponse() {
        return this.f48164c;
    }

    protected void parseResults(XmlPullParser xmlPullParser) throws Exception {
        try {
            String text = xmlPullParser.getText();
            this.f48165d = text;
            this.f48164c = Akeychat.UnSubscribeChannelResponse.parseFrom(e.e.decode(text));
            Log.i("UnfollowChannelIQ", "start parse result unfollow:" + this.f48165d);
        } catch (Exception e10) {
            Log.w("UnfollowChannelIQ", "encounter excp in parse results" + e10.getMessage());
        }
    }

    private d6() {
        super("unsubscribechannel", "http://akey.im/protocol/xmpp/iq/unsubscribechannel");
        this.f48162a = "UnfollowChannelIQ";
        setType(IQ.Type.set);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
        setFrom(bf.getInstance().getUserMe().getJID());
        this.f48163b = null;
    }

    public d6(String str) {
        super("unsubscribechannel", "http://akey.im/protocol/xmpp/iq/unsubscribechannel");
        this.f48162a = "UnfollowChannelIQ";
        setType(IQ.Type.set);
        setTo(ak.im.sdk.manager.f1.getInstance().getServer().getXmppDomain());
        setFrom(bf.getInstance().getUserMe().getJID());
        this.f48163b = str;
        this.f48166e = true;
    }
}