Interface IDtoService
Interface IDtoService
Namespace: MediaBrowser.Controller.Dto
Assembly: MediaBrowser.Controller.dll
Syntax
public interface IDtoService
Methods
AttachPrimaryImageAspectRatio(IItemDto, BaseItem)
Attaches the primary image aspect ratio.
Declaration
void AttachPrimaryImageAspectRatio(IItemDto dto, BaseItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| IItemDto | dto | The dto. |
| BaseItem | item | The item. |
GetBaseItemDto(BaseItem, DtoOptions, User)
Gets the base item dto.
Declaration
BaseItemDto GetBaseItemDto(BaseItem item, DtoOptions options, User user = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseItem | item | |
| DtoOptions | options | |
| User | user |
Returns
| Type | Description |
|---|---|
| BaseItemDto |
GetBaseItemDtos(BaseItem[], DtoOptions, User)
Declaration
BaseItemDto[] GetBaseItemDtos(BaseItem[] items, DtoOptions options, User user = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseItem[] | items | |
| DtoOptions | options | |
| User | user |
Returns
| Type | Description |
|---|---|
| BaseItemDto[] |
GetItemByNameDto(BaseItem, DtoOptions, User, ItemCounts, CancellationToken)
Gets the item by name dto.
Declaration
BaseItemDto GetItemByNameDto(BaseItem item, DtoOptions options, User user, ItemCounts counts, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseItem | item | |
| DtoOptions | options | |
| User | user | |
| ItemCounts | counts | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| BaseItemDto |
GetPrimaryImageAspectRatio(BaseItem)
Gets the primary image aspect ratio.
Declaration
double? GetPrimaryImageAspectRatio(BaseItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseItem | item | The item. |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.Double> | System.Nullable<System.Double>. |