2021-05-06 15:39:20 -07:00
|
|
|
#nullable disable
|
|
|
|
|
2021-07-24 10:58:50 -07:00
|
|
|
#pragma warning disable CA1002, CS1591
|
2020-08-22 12:56:24 -07:00
|
|
|
|
2019-01-13 13:01:16 -07:00
|
|
|
using System;
|
2018-12-27 16:27:57 -07:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using MediaBrowser.Controller.Dto;
|
2019-01-13 12:25:32 -07:00
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Model.Library;
|
|
|
|
using MediaBrowser.Model.Querying;
|
2018-12-27 16:27:57 -07:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Library
|
|
|
|
{
|
|
|
|
public interface IUserViewManager
|
|
|
|
{
|
2021-07-24 10:58:50 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets user views.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="query">Query to use.</param>
|
|
|
|
/// <returns>Set of folders.</returns>
|
2018-12-27 16:27:57 -07:00
|
|
|
Folder[] GetUserViews(UserViewQuery query);
|
2020-08-22 12:56:24 -07:00
|
|
|
|
2021-07-24 10:58:50 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets user sub views.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="parentId">Parent to use.</param>
|
|
|
|
/// <param name="type">Type to use.</param>
|
|
|
|
/// <param name="localizationKey">Localization key to use.</param>
|
|
|
|
/// <param name="sortName">Sort to use.</param>
|
|
|
|
/// <returns>User view.</returns>
|
2018-12-27 16:27:57 -07:00
|
|
|
UserView GetUserSubView(Guid parentId, string type, string localizationKey, string sortName);
|
|
|
|
|
2021-07-24 10:58:50 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Gets latest items.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request">Query to use.</param>
|
|
|
|
/// <param name="options">Options to use.</param>
|
|
|
|
/// <returns>Set of items.</returns>
|
2018-12-27 16:27:57 -07:00
|
|
|
List<Tuple<BaseItem, List<BaseItem>>> GetLatestItems(LatestItemsQuery request, DtoOptions options);
|
|
|
|
}
|
|
|
|
}
|