From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- .../Sync/IServerSyncProvider.cs | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 MediaBrowser.Controller/Sync/IServerSyncProvider.cs (limited to 'MediaBrowser.Controller/Sync/IServerSyncProvider.cs') diff --git a/MediaBrowser.Controller/Sync/IServerSyncProvider.cs b/MediaBrowser.Controller/Sync/IServerSyncProvider.cs new file mode 100644 index 000000000..335fea296 --- /dev/null +++ b/MediaBrowser.Controller/Sync/IServerSyncProvider.cs @@ -0,0 +1,29 @@ +using MediaBrowser.Model.Querying; +using MediaBrowser.Model.Sync; +using System; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using MediaBrowser.Model.IO; +using MediaBrowser.Controller.Entities; + +namespace MediaBrowser.Controller.Sync +{ + public interface IServerSyncProvider : ISyncProvider + { + /// + /// Transfers the file. + /// + Task SendFile(SyncJob syncJob, string originalMediaPath, Stream inputStream, bool isMedia, string[] outputPathParts, SyncTarget target, IProgress progress, CancellationToken cancellationToken); + + Task> GetFiles(string[] directoryPathParts, SyncTarget target, CancellationToken cancellationToken); + } + + public interface ISupportsDirectCopy + { + /// + /// Sends the file. + /// + Task SendFile(SyncJob syncJob, string originalMediaPath, string inputPath, bool isMedia, string[] outputPathParts, SyncTarget target, IProgress progress, CancellationToken cancellationToken); + } +} -- cgit v1.2.3