From bde06629da72a2418921b2e300fdd996f0119b5a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 5 Feb 2015 16:14:08 -0500 Subject: update translations --- .../Entities/UserViewBuilder.cs | 2 +- .../MediaBrowser.Controller.csproj | 1 + MediaBrowser.Controller/Sync/ICloudSyncProvider.cs | 9 ++++++- .../Sync/IServerSyncProvider.cs | 18 ++++---------- MediaBrowser.Controller/Sync/SyncAccount.cs | 28 ++++++++++++++++++++++ 5 files changed, 42 insertions(+), 16 deletions(-) create mode 100644 MediaBrowser.Controller/Sync/SyncAccount.cs (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/Entities/UserViewBuilder.cs b/MediaBrowser.Controller/Entities/UserViewBuilder.cs index 318c5fff3e..b5ca053ecd 100644 --- a/MediaBrowser.Controller/Entities/UserViewBuilder.cs +++ b/MediaBrowser.Controller/Entities/UserViewBuilder.cs @@ -417,7 +417,7 @@ namespace MediaBrowser.Controller.Entities ParentId = (parent == null ? null : parent.Id.ToString("N")), GroupItems = true - }).Select(i => i.Item1); + }).Select(i => i.Item1 ?? i.Item2.FirstOrDefault()).Where(i => i != null); query.SortBy = new string[] { }; diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj index 27beabcc1f..e8223ef100 100644 --- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj +++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj @@ -345,6 +345,7 @@ + diff --git a/MediaBrowser.Controller/Sync/ICloudSyncProvider.cs b/MediaBrowser.Controller/Sync/ICloudSyncProvider.cs index f93360c641..dae7faef8d 100644 --- a/MediaBrowser.Controller/Sync/ICloudSyncProvider.cs +++ b/MediaBrowser.Controller/Sync/ICloudSyncProvider.cs @@ -1,4 +1,5 @@ - +using System.Collections.Generic; + namespace MediaBrowser.Controller.Sync { public interface ICloudSyncProvider @@ -8,5 +9,11 @@ namespace MediaBrowser.Controller.Sync /// /// The name. string Name { get; } + + /// + /// Gets the synchronize targets. + /// + /// IEnumerable<SyncTarget>. + IEnumerable GetSyncAccounts(); } } diff --git a/MediaBrowser.Controller/Sync/IServerSyncProvider.cs b/MediaBrowser.Controller/Sync/IServerSyncProvider.cs index 175fda647b..8ef54fd432 100644 --- a/MediaBrowser.Controller/Sync/IServerSyncProvider.cs +++ b/MediaBrowser.Controller/Sync/IServerSyncProvider.cs @@ -31,22 +31,12 @@ namespace MediaBrowser.Controller.Sync /// /// The server identifier. /// The item identifier. - /// The path. + /// The path parts. + /// The name. + /// Type of the file. /// The target. /// The cancellation token. /// Task. - Task TransferItemFile(string serverId, string itemId, string path, SyncTarget target, CancellationToken cancellationToken); - - /// - /// Transfers the related file. - /// - /// The server identifier. - /// The item identifier. - /// The path. - /// The type. - /// The target. - /// The cancellation token. - /// Task. - Task TransferRelatedFile(string serverId, string itemId, string path, ItemFileType type, SyncTarget target, CancellationToken cancellationToken); + Task TransferItemFile(string serverId, string itemId, string[] pathParts, string name, ItemFileType fileType, SyncTarget target, CancellationToken cancellationToken); } } diff --git a/MediaBrowser.Controller/Sync/SyncAccount.cs b/MediaBrowser.Controller/Sync/SyncAccount.cs new file mode 100644 index 0000000000..882e948d1b --- /dev/null +++ b/MediaBrowser.Controller/Sync/SyncAccount.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; + +namespace MediaBrowser.Controller.Sync +{ + public class SyncAccount + { + /// + /// Gets or sets the name. + /// + /// The name. + public string Name { get; set; } + /// + /// Gets or sets the identifier. + /// + /// The identifier. + public string Id { get; set; } + /// + /// Gets or sets the user identifier. + /// + /// The user identifier. + public List UserIds { get; set; } + + public SyncAccount() + { + UserIds = new List(); + } + } +} -- cgit v1.2.3