diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-28 01:07:29 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-28 01:07:29 -0400 |
| commit | bda0b2f7c490fbd2f462902aba13ee7db80688c3 (patch) | |
| tree | 8919f918e47493b2f87aedcef5f32de451741164 /MediaBrowser.Controller | |
| parent | d12bcc2d249bce7f04c7927058366dff49161098 (diff) | |
sync updates
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/MediaBrowser.Controller.csproj | 4 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Sync/IHasDynamicAccess.cs (renamed from MediaBrowser.Controller/Sync/IRequiresDynamicAccess.cs) | 8 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Sync/IServerSyncProvider.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Sync/SyncedFileInfo.cs (renamed from MediaBrowser.Controller/Sync/SendFileResult.cs) | 13 |
4 files changed, 19 insertions, 8 deletions
diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj index 809d1f6f4..2fa62f79f 100644 --- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj +++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj @@ -393,13 +393,13 @@ <Compile Include="Subtitles\SubtitleDownloadEventArgs.cs" /> <Compile Include="Subtitles\SubtitleResponse.cs" /> <Compile Include="Subtitles\SubtitleSearchRequest.cs" /> - <Compile Include="Sync\IRequiresDynamicAccess.cs" /> + <Compile Include="Sync\IHasDynamicAccess.cs" /> <Compile Include="Sync\IServerSyncProvider.cs" /> <Compile Include="Sync\ISyncDataProvider.cs" /> <Compile Include="Sync\ISyncManager.cs" /> <Compile Include="Sync\ISyncProvider.cs" /> <Compile Include="Sync\ISyncRepository.cs" /> - <Compile Include="Sync\SendFileResult.cs" /> + <Compile Include="Sync\SyncedFileInfo.cs" /> <Compile Include="Themes\IAppThemeManager.cs" /> <Compile Include="Themes\InternalThemeImage.cs" /> <Compile Include="TV\ITVSeriesManager.cs" /> 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<SendFileResult>.</returns> - Task<SendFileResult> GetFileInfo(string remotePath, SyncTarget target, CancellationToken cancellationToken); + /// <returns>Task<SyncedFileInfo>.</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>(); + } } } |
