package ru.yandex.webmaster3.api.diagnostics.action;

import ru.yandex.autodoc.common.doc.annotation.Description;
import ru.yandex.webmaster3.api.diagnostics.data.ApiProblemInfo;
import ru.yandex.webmaster3.api.diagnostics.data.ApiSiteProblemTypeEnum;
import ru.yandex.webmaster3.api.http.rest.response.ApiResponse;

import java.util.Map;

/**
 * @author avhaliullin
 */
public class GetHostDiagnosticsResponse extends ApiResponse.Success200 {
    private final Map<ApiSiteProblemTypeEnum, ApiProblemInfo> problems;

    public GetHostDiagnosticsResponse(Map<ApiSiteProblemTypeEnum, ApiProblemInfo> problems) {
        this.problems = problems;
    }

    @Description("состояния проблем")
    public Map<ApiSiteProblemTypeEnum, ApiProblemInfo> getProblems() {
        return problems;
    }
}
