package ru.yandex.webmaster3.storage.robotstxt.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import ru.yandex.webmaster3.core.data.HttpResponsePart;

/**
 * @author: ishalaru
 * DATE: 21.05.2019
 * Pojo class for transfer error from task to response
 */
public class RobotsTxtErrorTransfer {
    private final AnalyzeRobotsTxtErrorType analyzeRobotsTxtErrorType;
    private final HttpResponsePart httpResponsePart;


    public RobotsTxtErrorTransfer(@JsonProperty("analyzeRobotsTxtErrorType") AnalyzeRobotsTxtErrorType analyzeRobotsTxtErrorType,
                                  @JsonProperty("httpResponsePart") HttpResponsePart httpResponsePart) {
        this.analyzeRobotsTxtErrorType = analyzeRobotsTxtErrorType;
        this.httpResponsePart = httpResponsePart;
    }

    public AnalyzeRobotsTxtErrorType getAnalyzeRobotsTxtErrorType() {
        return analyzeRobotsTxtErrorType;
    }

    public HttpResponsePart getHttpResponsePart() {
        return httpResponsePart;
    }
}
