package com.blackduck.integration.detect.workflow.result;

import java.util.Collections;
import java.util.List;

public class ReportDetectResult implements DetectResult {
    private final String reportName;
    private final String filePath;

    public ReportDetectResult(String reportName, String filePath) {
        this.reportName = reportName;
        this.filePath = filePath;
    }

    @Override
    public String getResultLocation() {
        return filePath;
    }

    @Override
    public String getResultMessage() {
        return String.format("%s: %s", reportName, filePath);
    }

    @Override
    public List<String> getResultSubMessages() {
        return Collections.emptyList();
    }

    @Override
    public List<String> getTransitiveUpgradeGuidanceSubMessages() {
        return Collections.emptyList();
    }
}
