using MediaBrowser.Controller.Entities; using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Querying; using System.Collections.Generic; namespace MediaBrowser.Controller.Dto { /// /// Interface IDtoService /// public interface IDtoService { /// /// Gets the user dto. /// /// The user. /// UserDto. UserDto GetUserDto(User user); /// /// Gets the dto id. /// /// The item. /// System.String. string GetDtoId(BaseItem item); /// /// Attaches the primary image aspect ratio. /// /// The dto. /// The item. void AttachPrimaryImageAspectRatio(IItemDto dto, IHasImages item); /// /// Gets the base item dto. /// /// The item. /// The fields. /// The user. /// The owner. /// Task{BaseItemDto}. BaseItemDto GetBaseItemDto(BaseItem item, List fields, User user = null, BaseItem owner = null); /// /// Gets the chapter information dto. /// /// The chapter information. /// The item. /// ChapterInfoDto. ChapterInfoDto GetChapterInfoDto(ChapterInfo chapterInfo, BaseItem item); /// /// Gets the item by name dto. /// /// The item. /// The fields. /// The tagged items. /// The user. /// BaseItemDto. BaseItemDto GetItemByNameDto(T item, List fields, List taggedItems, User user = null) where T : BaseItem, IItemByName; } }