TDCuePointHistory Class Reference

Inherits from NSObject
Declared in TDCuePointHistory.h

Overview

TDCuePointHistory retrieves the “Now Playing History” information for a station from Triton Digital’s network.

– requestHistoryForMount:withMaximumItems:eventTypeFilter:completionHandler:

Request now playing history information in an asynchronous fashion.

- (void)requestHistoryForMount:(NSString *)mountName withMaximumItems:(NSInteger)maximum eventTypeFilter:(NSArray *)filter completionHandler:(void ( ^ ) ( NSArray *historyItems , NSError *error ))completionHandler

Parameters

mountName

An NSString with the mount of the station whose history will be requested.

maximum

An NSInteger containing the maximum number of now playing events to retrieve. If the number is greater than what is available, all available data is returned.

filter

An NSArray of Cue point event types to filter the events returned. If nil is specified, all available types are returned. See CuePointEvent for all the possible values

completionHandler

A block containing an NSArray of CuePointEvent objetcs. Each CuePointEvent represents an entry in the history. In case an error occurs, the historyItems will be nil and the error parameter will be filled instead.

Declared In

TDCuePointHistory.h