2018-04-12 11:16:57 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Duplicati.Library.Modules.Builtin
|
2018-04-09 18:53:37 -02:30
|
|
|
{
|
2018-04-12 11:16:57 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Interface for describing a result serializer
|
|
|
|
|
/// </summary>
|
2018-04-09 18:53:37 -02:30
|
|
|
public interface IResultFormatSerializer
|
|
|
|
|
{
|
2018-04-12 11:16:57 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Serialize the specified result and logLines.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>The serialized result string.</returns>
|
|
|
|
|
/// <param name="result">The result to serialize.</param>
|
|
|
|
|
/// <param name="loglines">The log lines to serialize.</param>
|
2018-04-12 11:46:54 +02:00
|
|
|
/// <param name="additional">Additional parameters to include</param>
|
|
|
|
|
string Serialize(object result, IEnumerable<string> loglines, Dictionary<string, string> additional);
|
2018-04-12 11:16:57 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Returns the format that the serializer represents
|
|
|
|
|
/// </summary>
|
|
|
|
|
ResultExportFormat Format { get; }
|
2018-04-09 18:53:37 -02:30
|
|
|
}
|
|
|
|
|
}
|