package ru.yandex.autotests.directapi.darkside.steps;

import ru.yandex.autotests.directapi.darkside.datacontainers.http.request.GetBannersPhrasesRequest;
import ru.yandex.autotests.directapi.darkside.datacontainers.http.response.tsv.GetBannersPhrasesResponse;
import ru.yandex.autotests.directapi.darkside.steps.base.BaseHttpSteps;
import ru.yandex.qatools.allure.annotations.Step;

public class GetBannersPhrasesSteps extends BaseHttpSteps {
    public static final String GET_BANNERS_PHRASES = "GetBannersPhrases";

    @Step("Вызов {method} с параметрами {0}")
    public GetBannersPhrasesResponse getBannersPhrases(GetBannersPhrasesRequest request) {
        String responseText = executeMethodNoErrors(GET_BANNERS_PHRASES, request);
        return new GetBannersPhrasesResponse(responseText);
    }

}
