aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Sync/IServerSyncProvider.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-07-06 03:06:09 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-07-06 03:06:09 -0400
commit19292e5c4939ba658c2b1d32b30b1e0d16c7e361 (patch)
tree20ef810feb8173f20e926571949f9b39a412f681 /MediaBrowser.Controller/Sync/IServerSyncProvider.cs
parent47f91baaa30a6e9f69b03f0a89d7a45a362a3f24 (diff)
updated nuget
Diffstat (limited to 'MediaBrowser.Controller/Sync/IServerSyncProvider.cs')
-rw-r--r--MediaBrowser.Controller/Sync/IServerSyncProvider.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Sync/IServerSyncProvider.cs b/MediaBrowser.Controller/Sync/IServerSyncProvider.cs
index 2635a4cbf..860c736ea 100644
--- a/MediaBrowser.Controller/Sync/IServerSyncProvider.cs
+++ b/MediaBrowser.Controller/Sync/IServerSyncProvider.cs
@@ -49,4 +49,18 @@ namespace MediaBrowser.Controller.Sync
/// <returns>Task&lt;QueryResult&lt;FileMetadata&gt;&gt;.</returns>
Task<QueryResult<FileMetadata>> GetFiles(FileQuery query, SyncTarget target, CancellationToken cancellationToken);
}
+
+ public interface ISupportsDirectCopy
+ {
+ /// <summary>
+ /// Sends the file.
+ /// </summary>
+ /// <param name="path">The path.</param>
+ /// <param name="pathParts">The path parts.</param>
+ /// <param name="target">The target.</param>
+ /// <param name="progress">The progress.</param>
+ /// <param name="cancellationToken">The cancellation token.</param>
+ /// <returns>Task&lt;SyncedFileInfo&gt;.</returns>
+ Task<SyncedFileInfo> SendFile(string path, string[] pathParts, SyncTarget target, IProgress<double> progress, CancellationToken cancellationToken);
+ }
}