Class NoopApiMediaQueryService
Inheritance
object
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class NoopApiMediaQueryService : IApiMediaQueryService
Methods
View SourceExecuteQuery(string?, IEnumerable<string>, IEnumerable<string>, int, int)
Returns an attempt with a collection of media ids that passed the search criteria as a paged model.
Declaration
public Attempt<PagedModel<Guid>, ApiMediaQueryOperationStatus> ExecuteQuery(string? fetch, IEnumerable<string> filters, IEnumerable<string> sorts, int skip, int take)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fetch | Optional fetch query parameter value. |
| IEnumerable<string> | filters | Optional filter query parameters values. |
| IEnumerable<string> | sorts | Optional sort query parameters values. |
| int | skip | The amount of items to skip. |
| int | take | The amount of items to take. |
Returns
| Type | Description |
|---|---|
| Attempt<PagedModel<Guid>, ApiMediaQueryOperationStatus> | A paged model of media ids that are returned after applying the search queries in an attempt. |
GetByPath(string)
Returns the media item that matches the supplied path (if any).
Declaration
public IPublishedContent? GetByPath(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path to look up. |
Returns
| Type | Description |
|---|---|
| IPublishedContent | The media item at path, or null if it does not exist. |