2
0

IServerSyncProvider.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.IO;
  3. using System.Threading;
  4. using System.Threading.Tasks;
  5. using MediaBrowser.Model.IO;
  6. using MediaBrowser.Model.Querying;
  7. using MediaBrowser.Model.Sync;
  8. namespace MediaBrowser.Controller.Sync
  9. {
  10. public interface IServerSyncProvider : ISyncProvider
  11. {
  12. /// <summary>
  13. /// Transfers the file.
  14. /// </summary>
  15. Task<SyncedFileInfo> SendFile(SyncJob syncJob, string originalMediaPath, Stream inputStream, bool isMedia, string[] outputPathParts, SyncTarget target, IProgress<double> progress, CancellationToken cancellationToken);
  16. Task<QueryResult<FileSystemMetadata>> GetFiles(string[] directoryPathParts, SyncTarget target, CancellationToken cancellationToken);
  17. }
  18. public interface ISupportsDirectCopy
  19. {
  20. /// <summary>
  21. /// Sends the file.
  22. /// </summary>
  23. Task<SyncedFileInfo> SendFile(SyncJob syncJob, string originalMediaPath, string inputPath, bool isMedia, string[] outputPathParts, SyncTarget target, IProgress<double> progress, CancellationToken cancellationToken);
  24. }
  25. }