Inherits from ASObject : NSObject
Declared in ASAlbum.h

Overview

Album containing ASTrack instances for a particular artist.

Tasks

Properties

tracks

Collection of tracks on this ASAlbum. The method loadTracksWithSuccess:failure: is used to create and populate this attribute.

@property (nonatomic) ASPaginator *tracks

Declared In

ASAlbum.h

Instance Methods

loadTracksWithSuccess:failure:

Issue a request to load the paginated collection of ASTrack instances belonging to this ASAlbum.

- (ASPaginator *)loadTracksWithSuccess:(void ( ^ ) ( ASAlbum *album ))success failure:(void ( ^ ) ( NSError *))failure

Parameters

success

Callback to invoke when the request to load tracks has been successful. ‘self’ instance of ASAlbum is passed to the block.

failure

Callback to invoke when an error has occurred.

Return Value

this.tracks. Note: when first returned this paginator is not very useful. However after the success callback has been invoked you may then access the objects fetched as well as page through to additional results.

Declared In

ASAlbum.h