import OlapicMediaBatch from 'OlapicDevKit-ES6/src/core/entities/media/media.batch.js'
Constructor Summary
Public Constructor | ||
public |
constructor(entity: OlapicEntity, sorting: String, limit: Number, rightsOnly: Boolean) Create a new media batch. |
Inherited Summary
From class OlapicBatch | ||
public get |
A quick shortcut to get access to the DevKit singleton. |
|
public |
Makes a request to the API and returns a entities list, or an |
|
public |
Checks whether there's a next page to load or not. |
|
public |
Checks whether there's a previous page to load or not. |
|
public |
Loads the batch next page. |
|
public |
Loads the batch previous page. |
Public Constructors
public constructor(entity: OlapicEntity, sorting: String, limit: Number, rightsOnly: Boolean) source
Create a new media batch.
Override:
OlapicBatch#constructorParams:
Name | Type | Attribute | Description |
entity | OlapicEntity | A subclass of OlapicEntity which supports the following property path: 'resources/media/[sorting]/link', where sorting may be one of the supported sorting options by the Olapic API: recent, shuffled, photorank or rated. |
|
sorting | String |
|
One of the four supported sorting options by the Olapic API: recent, shuffled, photorank or rated. |
limit | Number |
|
The amount of media per page. |
rightsOnly | Boolean |
|
If true, the batch will return only media that has its rights approved. |