jellyfin/MediaBrowser.Controller/Sync/IServerSyncProvider.cs

33 lines
1.3 KiB
C#
Raw Normal View History

2015-02-05 06:29:37 +01:00
using MediaBrowser.Model.Sync;
2015-02-26 21:06:42 +01:00
using System;
using System.IO;
2015-02-05 06:29:37 +01:00
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Sync
{
public interface IServerSyncProvider : ISyncProvider
{
/// <summary>
2015-02-26 21:06:42 +01:00
/// Transfers the file.
2015-02-05 06:29:37 +01:00
/// </summary>
2015-02-26 21:06:42 +01:00
/// <param name="inputFile">The input file.</param>
/// <param name="pathParts">The path parts.</param>
2015-02-05 06:29:37 +01:00
/// <param name="target">The target.</param>
2015-02-26 21:06:42 +01:00
/// <param name="progress">The progress.</param>
2015-02-05 06:29:37 +01:00
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
2015-02-26 21:06:42 +01:00
Task SendFile(string inputFile, string[] pathParts, SyncTarget target, IProgress<double> progress, CancellationToken cancellationToken);
2015-02-05 06:29:37 +01:00
/// <summary>
2015-02-26 21:06:42 +01:00
/// Gets the file.
2015-02-05 06:29:37 +01:00
/// </summary>
2015-02-05 22:14:08 +01:00
/// <param name="pathParts">The path parts.</param>
2015-02-05 06:29:37 +01:00
/// <param name="target">The target.</param>
2015-02-26 21:06:42 +01:00
/// <param name="progress">The progress.</param>
2015-02-05 06:29:37 +01:00
/// <param name="cancellationToken">The cancellation token.</param>
2015-02-26 21:06:42 +01:00
/// <returns>Task&lt;Stream&gt;.</returns>
Task<Stream> GetFile(string[] pathParts, SyncTarget target, IProgress<double> progress, CancellationToken cancellationToken);
2015-02-05 06:29:37 +01:00
}
}