2015-02-07 07:02:42 +01:00
|
|
|
|
using MediaBrowser.Model.Sync;
|
|
|
|
|
using System.Collections.Generic;
|
2015-02-22 20:05:38 +01:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2015-02-05 22:14:08 +01:00
|
|
|
|
|
2014-07-22 03:29:06 +02:00
|
|
|
|
namespace MediaBrowser.Controller.Sync
|
|
|
|
|
{
|
|
|
|
|
public interface ICloudSyncProvider
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
string Name { get; }
|
2015-02-05 22:14:08 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the synchronize targets.
|
|
|
|
|
/// </summary>
|
2015-02-07 07:02:42 +01:00
|
|
|
|
/// <param name="userId">The user identifier.</param>
|
2015-02-05 22:14:08 +01:00
|
|
|
|
/// <returns>IEnumerable<SyncTarget>.</returns>
|
2015-02-07 07:02:42 +01:00
|
|
|
|
IEnumerable<SyncTarget> GetSyncTargets(string userId);
|
2015-02-22 20:05:38 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Transfers the item file.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="serverId">The server identifier.</param>
|
|
|
|
|
/// <param name="itemId">The item identifier.</param>
|
|
|
|
|
/// <param name="inputFile">The input file.</param>
|
|
|
|
|
/// <param name="pathParts">The path parts.</param>
|
|
|
|
|
/// <param name="target">The target.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
Task TransferItemFile(string serverId, string itemId, string inputFile, string[] pathParts, SyncTarget target, CancellationToken cancellationToken);
|
2014-07-22 03:29:06 +02:00
|
|
|
|
}
|
|
|
|
|
}
|