#include <yandex/maps/wiki/validator/storage/message_attributes_filter.h>

namespace maps::wiki::validator::storage {

bool MessageAttributesFilter::matches(const Message::Attributes& attributes) const
{
    return (!severity || severity == attributes.severity)
        && (!checkId || checkId == attributes.checkId)
        && (!description || description == attributes.description)
        && (!regionType || regionType == attributes.regionType);
}

} // namespace maps::wiki::validator::storage
