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

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

/**
 * Created by pavryabov on 13.11.15.
 */
public class ExportRightsUidToCidSteps extends BaseHttpSteps {

    private static final String EXPORT_RIGHTS_UID_TO_CID = "ExportRightsUidToCid";

    @Step("Вызов ExportRightsUidToCid")
    public ExportRightsUidToCidResponse exportRightsUidToCid(ExportRightsUidToCidRequest request) {
        String responseText = executeMethodNoErrors(
                EXPORT_RIGHTS_UID_TO_CID,
                request.toString()
        );
        return new ExportRightsUidToCidResponse(responseText);
    }
}
