aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Sync
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-28 01:07:29 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-28 01:07:29 -0400
commitbda0b2f7c490fbd2f462902aba13ee7db80688c3 (patch)
tree8919f918e47493b2f87aedcef5f32de451741164 /MediaBrowser.Controller/Sync
parentd12bcc2d249bce7f04c7927058366dff49161098 (diff)
sync updates
Diffstat (limited to 'MediaBrowser.Controller/Sync')
-rw-r--r--MediaBrowser.Controller/Sync/IHasDynamicAccess.cs (renamed from MediaBrowser.Controller/Sync/IRequiresDynamicAccess.cs)8
-rw-r--r--MediaBrowser.Controller/Sync/IServerSyncProvider.cs2
-rw-r--r--MediaBrowser.Controller/Sync/SyncedFileInfo.cs (renamed from MediaBrowser.Controller/Sync/SendFileResult.cs)13
3 files changed, 17 insertions, 6 deletions
diff --git a/MediaBrowser.Controller/Sync/IRequiresDynamicAccess.cs b/MediaBrowser.Controller/Sync/IHasDynamicAccess.cs
index 820a1dce0..f907de729 100644
--- a/MediaBrowser.Controller/Sync/IRequiresDynamicAccess.cs
+++ b/MediaBrowser.Controller/Sync/IHasDynamicAccess.cs
@@ -4,15 +4,15 @@ using System.Threading.Tasks;
namespace MediaBrowser.Controller.Sync
{
- public interface IRequiresDynamicAccess
+ public interface IHasDynamicAccess
{
/// <summary>
- /// Gets the file information.
+ /// Gets the synced file information.
/// </summary>
/// <param name="remotePath">The remote path.</param>
/// <param name="target">The target.</param>
/// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task&lt;SendFileResult&gt;.</returns>
- Task<SendFileResult> GetFileInfo(string remotePath, SyncTarget target, CancellationToken cancellationToken);
+ /// <returns>Task&lt;SyncedFileInfo&gt;.</returns>
+ Task<SyncedFileInfo> GetSyncedFileInfo(string remotePath, SyncTarget target, CancellationToken cancellationToken);
}
}
diff --git a/MediaBrowser.Controller/Sync/IServerSyncProvider.cs b/MediaBrowser.Controller/Sync/IServerSyncProvider.cs
index 9cccd4150..46bbbd329 100644
--- a/MediaBrowser.Controller/Sync/IServerSyncProvider.cs
+++ b/MediaBrowser.Controller/Sync/IServerSyncProvider.cs
@@ -18,7 +18,7 @@ namespace MediaBrowser.Controller.Sync
/// <param name="progress">The progress.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
- Task<SendFileResult> SendFile(Stream stream, string remotePath, SyncTarget target, IProgress<double> progress, CancellationToken cancellationToken);
+ Task<SyncedFileInfo> SendFile(Stream stream, string remotePath, SyncTarget target, IProgress<double> progress, CancellationToken cancellationToken);
/// <summary>
/// Deletes the file.
diff --git a/MediaBrowser.Controller/Sync/SendFileResult.cs b/MediaBrowser.Controller/Sync/SyncedFileInfo.cs
index 62753444a..550af2d55 100644
--- a/MediaBrowser.Controller/Sync/SendFileResult.cs
+++ b/MediaBrowser.Controller/Sync/SyncedFileInfo.cs
@@ -1,8 +1,9 @@
using MediaBrowser.Model.MediaInfo;
+using System.Collections.Generic;
namespace MediaBrowser.Controller.Sync
{
- public class SendFileResult
+ public class SyncedFileInfo
{
/// <summary>
/// Gets or sets the path.
@@ -14,5 +15,15 @@ namespace MediaBrowser.Controller.Sync
/// </summary>
/// <value>The protocol.</value>
public MediaProtocol Protocol { get; set; }
+ /// <summary>
+ /// Gets or sets the required HTTP headers.
+ /// </summary>
+ /// <value>The required HTTP headers.</value>
+ public Dictionary<string, string> RequiredHttpHeaders { get; set; }
+
+ public SyncedFileInfo()
+ {
+ RequiredHttpHeaders = new Dictionary<string, string>();
+ }
}
}