Files
duplicati/Duplicati/Library/Modules/Builtin/ResultSerialization/IResultFormatSerializer.cs
T
Kenneth Skovhede de84650eae Rewrote the logic for reporting JSON to avoid reporting JSON inside a text blob, but instead use an extra tag in the JSON.
The logic is currently that the template is scanned for potential values, and those that are found are reported in the extra tag for the JSON.
A bit clumsy, but allows the user to choose specific fields to include in the reported data.
2018-04-12 11:46:54 +02:00

25 lines
872 B
C#

using System.Collections.Generic;
namespace Duplicati.Library.Modules.Builtin
{
/// <summary>
/// Interface for describing a result serializer
/// </summary>
public interface IResultFormatSerializer
{
/// <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>
/// <param name="additional">Additional parameters to include</param>
string Serialize(object result, IEnumerable<string> loglines, Dictionary<string, string> additional);
/// <summary>
/// Returns the format that the serializer represents
/// </summary>
ResultExportFormat Format { get; }
}
}