2021-05-06 22:39:20 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2020-08-22 19:56:24 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:01:16 +00:00
|
|
|
using System;
|
2018-12-27 23:27:57 +00:00
|
|
|
using System.IO;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using MediaBrowser.Model.IO;
|
2019-01-13 19:25:32 +00:00
|
|
|
using MediaBrowser.Model.Querying;
|
|
|
|
using MediaBrowser.Model.Sync;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Sync
|
|
|
|
{
|
|
|
|
public interface IServerSyncProvider : ISyncProvider
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Transfers the file.
|
|
|
|
/// </summary>
|
|
|
|
Task<SyncedFileInfo> SendFile(SyncJob syncJob, string originalMediaPath, Stream inputStream, bool isMedia, string[] outputPathParts, SyncTarget target, IProgress<double> progress, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
Task<QueryResult<FileSystemMetadata>> GetFiles(string[] directoryPathParts, SyncTarget target, CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface ISupportsDirectCopy
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Sends the file.
|
|
|
|
/// </summary>
|
|
|
|
Task<SyncedFileInfo> SendFile(SyncJob syncJob, string originalMediaPath, string inputPath, bool isMedia, string[] outputPathParts, SyncTarget target, IProgress<double> progress, CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
}
|