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