ICloudSyncProvider.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using MediaBrowser.Model.Sync;
  2. using System.Collections.Generic;
  3. using System.Threading;
  4. using System.Threading.Tasks;
  5. namespace MediaBrowser.Controller.Sync
  6. {
  7. public interface ICloudSyncProvider
  8. {
  9. /// <summary>
  10. /// Gets the name.
  11. /// </summary>
  12. /// <value>The name.</value>
  13. string Name { get; }
  14. /// <summary>
  15. /// Gets the synchronize targets.
  16. /// </summary>
  17. /// <param name="userId">The user identifier.</param>
  18. /// <returns>IEnumerable&lt;SyncTarget&gt;.</returns>
  19. IEnumerable<SyncTarget> GetSyncTargets(string userId);
  20. /// <summary>
  21. /// Transfers the item file.
  22. /// </summary>
  23. /// <param name="serverId">The server identifier.</param>
  24. /// <param name="itemId">The item identifier.</param>
  25. /// <param name="inputFile">The input file.</param>
  26. /// <param name="pathParts">The path parts.</param>
  27. /// <param name="target">The target.</param>
  28. /// <param name="cancellationToken">The cancellation token.</param>
  29. /// <returns>Task.</returns>
  30. Task TransferItemFile(string serverId, string itemId, string inputFile, string[] pathParts, SyncTarget target, CancellationToken cancellationToken);
  31. }
  32. }