package ru.yandex.direct.api.v5.entity.audiencetargets.converter;

import java.util.List;

import com.yandex.direct.api.v5.audiencetargets.DeleteRequest;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class AudienceTargetsDeleteRequestConverter implements Converter<DeleteRequest, List<Long>> {
    @Override
    public List<Long> convert(DeleteRequest source) {
        return source.getSelectionCriteria().getIds();
    }
}
