Files
PIbd-32_BuslaevRoman_KOP/ComponentOrientedPlatform/Abstractions/IReportDocumentWithChartPieContract.cs
2025-10-21 13:17:55 +04:00

31 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ComponentOrientedPlatform.Abstractions;
public interface IReportDocumentWithChartPieContract : IReportDocumentContract
{
/// <summary>
/// Создание документа в асинхронном режиме
/// </summary>
/// <param name="filePath">Путь до файла</param>
/// <param name="header">Заголовок документа</param>
/// <param name="chartTitle">Заголовок диаграммы</param>
/// <param name="series">Список данных для круговой диаграммы</param>
/// <exception cref="ArgumentNullException">Не указан путь до файла</exception>
/// <exception cref="ArgumentNullException">Не задан заголовок документа</exception>
/// <exception cref="ArgumentNullException">Не задан заголовок диаграммы</exception>
/// <exception cref="ArgumentNullException">Список серий не задан</exception>
/// <exception cref="ArgumentOutOfRangeException">Список серий пустой</exception>
/// <returns>Задача по созданию документа</returns>
Task CreateDocumentAsync(
string filePath,
string header,
string chartTitle,
List<(int Parameter, double Value)> series
);
}