/*
 * Decompiled with CFR 0.152.
 */
package org.jivesoftware.smack.packet;

import org.jivesoftware.smack.packet.IQ;

public class EmptyResultIQ
extends IQ {
    public EmptyResultIQ() {
        super(null, null);
        this.setType(IQ.Type.result);
    }

    public EmptyResultIQ(IQ request) {
        this();
        if (request.getType() != IQ.Type.get && request.getType() != IQ.Type.set) {
            throw new IllegalArgumentException("IQ must be of type 'set' or 'get'. Original IQ: " + request.toXML());
        }
        this.setStanzaId(request.getStanzaId());
        this.setFrom(request.getTo());
        this.setTo(request.getFrom());
    }

    @Override
    protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder xml) {
        return null;
    }
}
