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

import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.filter.IQReplyFilter;
import org.jivesoftware.smack.filter.IQTypeFilter;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.packet.Stanza;

public class IQResultReplyFilter
extends IQReplyFilter {
    public IQResultReplyFilter(IQ iqPacket, XMPPConnection conn) {
        super(iqPacket, conn);
    }

    @Override
    public boolean accept(Stanza packet) {
        if (!super.accept(packet)) {
            return false;
        }
        return IQTypeFilter.RESULT.accept(packet);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.getClass().getSimpleName());
        sb.append(" (" + super.toString() + ')');
        return sb.toString();
    }
}
