Class: PhotoListGateway

PhotoListGateway(options)

new PhotoListGateway(options)

API for retrieving gallery photos

Parameters:
Name Type Description
options Object

Configuration options

Properties
Name Type Description
api mw.Api
url string

for overriding default URI for API queries

Source:

Methods

getPhotos() → {jQuery.Deferred}

Request photos beginning with the current value of endTimestamp

Source:
Returns:

where parameter is a list of JavaScript objects describing an image.

Type
jQuery.Deferred

getQuery() → {Object}

Get the associated query needed to retrieve images from API based on currently configured options.

Source:
Returns:
Type
Object

getWidth() → {number}

Returns the value in pixels of a medium thumbnail

Source:
Returns:
Type
number