-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathITransformsData.cs
More file actions
45 lines (40 loc) · 1.87 KB
/
ITransformsData.cs
File metadata and controls
45 lines (40 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// <copyright file="ITransformsData.cs" company="SoluiNet">
// Copyright (c) SoluiNet. All rights reserved.
// </copyright>
namespace SoluiNet.Core.Plugin
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/// <summary>
/// Provides the interface for a plugin which can transform input data to a specific output format.
/// </summary>
public interface ITransformsData : IBasePlugin
{
/// <summary>
/// Gets a list of all supported input formats.
/// </summary>
List<string> SupportedInputFormats { get; }
/// <summary>
/// Gets a list of all supported output formats.
/// </summary>
List<string> SupportedOutputFormats { get; }
/// <summary>
/// Transform an input file to the overgiven output format.
/// </summary>
/// <param name="inputFile">The input file path.</param>
/// <param name="preferedOutputFormat">The output format to which the input file should be transformed to.</param>
/// <returns>Returns an object which contains the data of the input file in the chosen output format.</returns>
object Transform(string inputFile, string preferedOutputFormat);
/// <summary>
/// Transform a stream to the overgiven output format.
/// </summary>
/// <param name="inputStream">The input stream.</param>
/// <param name="inputFormat">The format in which the stream will be overgiven.</param>
/// <param name="preferedOutputFormat">The output format to which the input stream should be transformed to.</param>
/// <returns>Returns an object which contains the data of the input stream in the chosen output format.</returns>
object Transform(string inputStream, string inputFormat, string preferedOutputFormat);
}
}