17 lines
580 B
C#
17 lines
580 B
C#
using MeetTheTeacher.Model;
|
|
|
|
namespace MeetTheTeacher.Export;
|
|
|
|
/// <summary>
|
|
/// Allows to export data of <see cref="ICsvRepresentable"/> type
|
|
/// </summary>
|
|
public interface IDataExporter
|
|
{
|
|
/// <summary>
|
|
/// Exports the given data.
|
|
/// File based exporters will use the provided file name as the name of the file they export.
|
|
/// </summary>
|
|
/// <param name="data">Data to export</param>
|
|
/// <param name="fileName">File name to be used; without the extension</param>
|
|
void Export(IEnumerable<ICsvRepresentable> data, string? fileName);
|
|
}
|