diff options
| author | stefan <stefan@hegedues.at> | 2018-09-12 19:26:21 +0200 |
|---|---|---|
| committer | stefan <stefan@hegedues.at> | 2018-09-12 19:26:21 +0200 |
| commit | 48facb797ed912e4ea6b04b17d1ff190ac2daac4 (patch) | |
| tree | 8dae77a31670a888d733484cb17dd4077d5444e8 /MediaBrowser.Controller/Collections | |
| parent | c32d8656382a0eacb301692e0084377fc433ae9b (diff) | |
Update to 3.5.2 and .net core 2.1
Diffstat (limited to 'MediaBrowser.Controller/Collections')
4 files changed, 0 insertions, 184 deletions
diff --git a/MediaBrowser.Controller/Collections/CollectionCreationOptions.cs b/MediaBrowser.Controller/Collections/CollectionCreationOptions.cs deleted file mode 100644 index 7a387e319..000000000 --- a/MediaBrowser.Controller/Collections/CollectionCreationOptions.cs +++ /dev/null @@ -1,27 +0,0 @@ -using MediaBrowser.Model.Entities; -using System; -using System.Collections.Generic; - -namespace MediaBrowser.Controller.Collections -{ - public class CollectionCreationOptions : IHasProviderIds - { - public string Name { get; set; } - - public Guid? ParentId { get; set; } - - public bool IsLocked { get; set; } - - public Dictionary<string, string> ProviderIds { get; set; } - - public string[] ItemIdList { get; set; } - public string[] UserIds { get; set; } - - public CollectionCreationOptions() - { - ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); - ItemIdList = new string[] { }; - UserIds = new string[] { }; - } - } -} diff --git a/MediaBrowser.Controller/Collections/CollectionEvents.cs b/MediaBrowser.Controller/Collections/CollectionEvents.cs deleted file mode 100644 index 80f66a444..000000000 --- a/MediaBrowser.Controller/Collections/CollectionEvents.cs +++ /dev/null @@ -1,37 +0,0 @@ -using MediaBrowser.Controller.Entities; -using MediaBrowser.Controller.Entities.Movies; -using System; -using System.Collections.Generic; - -namespace MediaBrowser.Controller.Collections -{ - public class CollectionCreatedEventArgs : EventArgs - { - /// <summary> - /// Gets or sets the collection. - /// </summary> - /// <value>The collection.</value> - public BoxSet Collection { get; set; } - - /// <summary> - /// Gets or sets the options. - /// </summary> - /// <value>The options.</value> - public CollectionCreationOptions Options { get; set; } - } - - public class CollectionModifiedEventArgs : EventArgs - { - /// <summary> - /// Gets or sets the collection. - /// </summary> - /// <value>The collection.</value> - public BoxSet Collection { get; set; } - - /// <summary> - /// Gets or sets the items changed. - /// </summary> - /// <value>The items changed.</value> - public List<BaseItem> ItemsChanged { get; set; } - } -} diff --git a/MediaBrowser.Controller/Collections/ICollectionManager.cs b/MediaBrowser.Controller/Collections/ICollectionManager.cs deleted file mode 100644 index d89843cc0..000000000 --- a/MediaBrowser.Controller/Collections/ICollectionManager.cs +++ /dev/null @@ -1,74 +0,0 @@ -using MediaBrowser.Controller.Entities; -using MediaBrowser.Controller.Entities.Movies; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; - -namespace MediaBrowser.Controller.Collections -{ - public interface ICollectionManager - { - /// <summary> - /// Occurs when [collection created]. - /// </summary> - event EventHandler<CollectionCreatedEventArgs> CollectionCreated; - - /// <summary> - /// Occurs when [items added to collection]. - /// </summary> - event EventHandler<CollectionModifiedEventArgs> ItemsAddedToCollection; - - /// <summary> - /// Occurs when [items removed from collection]. - /// </summary> - event EventHandler<CollectionModifiedEventArgs> ItemsRemovedFromCollection; - - /// <summary> - /// Creates the collection. - /// </summary> - /// <param name="options">The options.</param> - /// <returns>Task.</returns> - Task<BoxSet> CreateCollection(CollectionCreationOptions options); - - /// <summary> - /// Adds to collection. - /// </summary> - /// <param name="collectionId">The collection identifier.</param> - /// <param name="itemIds">The item ids.</param> - /// <returns>Task.</returns> - Task AddToCollection(Guid collectionId, IEnumerable<string> itemIds); - - /// <summary> - /// Removes from collection. - /// </summary> - /// <param name="collectionId">The collection identifier.</param> - /// <param name="itemIds">The item ids.</param> - /// <returns>Task.</returns> - Task RemoveFromCollection(Guid collectionId, IEnumerable<string> itemIds); - - Task AddToCollection(Guid collectionId, IEnumerable<Guid> itemIds); - Task RemoveFromCollection(Guid collectionId, IEnumerable<Guid> itemIds); - - /// <summary> - /// Collapses the items within box sets. - /// </summary> - /// <param name="items">The items.</param> - /// <param name="user">The user.</param> - /// <returns>IEnumerable{BaseItem}.</returns> - IEnumerable<BaseItem> CollapseItemsWithinBoxSets(IEnumerable<BaseItem> items, User user); - - /// <summary> - /// Gets the collections folder. - /// </summary> - /// <param name="userId">The user identifier.</param> - /// <returns>Folder.</returns> - Folder GetCollectionsFolder(string userId); - - /// <summary> - /// Gets the collections. - /// </summary> - /// <param name="user">The user.</param> - /// <returns>IEnumerable<BoxSet>.</returns> - IEnumerable<BoxSet> GetCollections(User user); - } -} diff --git a/MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs b/MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs deleted file mode 100644 index 38d2611f0..000000000 --- a/MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs +++ /dev/null @@ -1,46 +0,0 @@ -using MediaBrowser.Controller.Entities; -using MediaBrowser.Model.Serialization; - -namespace MediaBrowser.Controller.Collections -{ - public class ManualCollectionsFolder : BasePluginFolder, IHiddenFromDisplay - { - public ManualCollectionsFolder() - { - Name = "Collections"; - } - - public override bool IsHidden - { - get - { - return true; - } - } - - [IgnoreDataMember] - public override bool SupportsInheritedParentImages - { - get - { - return false; - } - } - - public bool IsHiddenFromUser(User user) - { - return !ConfigurationManager.Configuration.DisplayCollectionsView; - } - - [IgnoreDataMember] - public override string CollectionType - { - get { return Model.Entities.CollectionType.BoxSets; } - } - - public override string GetClientTypeName() - { - return typeof(CollectionFolder).Name; - } - } -}
\ No newline at end of file |
