ASArtist Class Reference
Inherits from | ASObject : NSObject |
Declared in | ASArtist.h |
Tasks
-
albums
Collection of albums on this ASArtist. The method loadAlbumsWithSuccess:failure: is used to create and populate this attribute.
property -
tracks
Collection of tracks on this ASArtist. The method loadTracksWithSuccess:failure: is used to create and populate this attribute.
property -
– loadAlbumsWithSuccess:failure:
Issue a request to load the paginated collection of ASAlbum instances belonging to this ASArtist.
-
– loadTracksWithSuccess:failure:
Issue a request to load the paginated collection of ASTrack instances belonging to this ASAlbum.
Properties
albums
Collection of albums on this ASArtist. The method loadAlbumsWithSuccess:failure: is used to create and populate this attribute.
@property (nonatomic, readonly) ASPaginator *albums
Declared In
ASArtist.h
tracks
Collection of tracks on this ASArtist. The method loadTracksWithSuccess:failure: is used to create and populate this attribute.
@property (nonatomic, readonly) ASPaginator *tracks
Declared In
ASArtist.h
Instance Methods
loadAlbumsWithSuccess:failure:
Issue a request to load the paginated collection of ASAlbum instances belonging to this ASArtist.
- (ASPaginator *)loadAlbumsWithSuccess:(void ( ^ ) ( ASArtist *))success failure:(void ( ^ ) ( NSError *))failure
Parameters
- success
Callback to invoke when the request to load albums has been successful. ‘self’ instance of ASArist is passed to the block.
- failure
Callback to invoke when an error has occurred.
Return Value
this.albums. 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
ASArtist.h
loadTracksWithSuccess:failure:
- (ASPaginator *)loadTracksWithSuccess:(void ( ^ ) ( ASArtist *))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
ASArtist.h