package ru.yandex.direct.api.v5.entity.adgroups.validation.type

import org.springframework.stereotype.Component
import ru.yandex.direct.api.v5.entity.adgroups.container.AddAdGroupsComplexPerformanceContainer
import ru.yandex.direct.api.v5.validation.DefectType
import ru.yandex.direct.validation.result.ValidationResult

@Component
class AddAdGroupsComplexPerformanceInternalRequestValidationTypeSupport : AdGroupsInternalRequestValidationTypeSupport<AddAdGroupsComplexPerformanceContainer> {
    override fun getTypeClass() = AddAdGroupsComplexPerformanceContainer::class.java

    override fun validate(items: List<AddAdGroupsComplexPerformanceContainer>) =
        items.map { ValidationResult.success<AddAdGroupsComplexPerformanceContainer, DefectType>(it) }
}
