Inherits from NSObject
Declared in OlapicCurationQueue.h

Overview

Manage a queue of media status association

Properties

delegate

The delegate object for the queue protocol

@property (nonatomic, weak) id<OlapicCurationQueueDelegate> __weak delegate

Declared In

OlapicCurationQueue.h

itemsToProcess

How many items the queue will wait before sending a request

@property (nonatomic) NSInteger itemsToProcess

Declared In

OlapicCurationQueue.h

Instance Methods

cleanQueue

Empty the current queue and remove it from the user defaults

- (void)cleanQueue

Availability

v1.0

Declared In

OlapicCurationQueue.h

forceProcess

Force the queue to send a request with the current items, ignoring if there’s enough items to match the ‘itemsToProcess’ property

- (void)forceProcess

Availability

v1.0

Declared In

OlapicCurationQueue.h

getBulkRequest

Get an instance of the object for bulk requests

- (OlapicBulkRequest *)getBulkRequest

Return Value

A OlapicBulkRequest instance

Availability

v1.0

Declared In

OlapicCurationQueue.h

getCurrentQueue

Get the current queue contents

- (NSArray *)getCurrentQueue

Return Value

The queue

Availability

v1.0

Declared In

OlapicCurationQueue.h

getUserDefaults

Get access to the app user defaults

- (NSUserDefaults *)getUserDefaults

Return Value

The reference object

Availability

v1.0

Declared In

OlapicCurationQueue.h

initWithIdentifier:

Class constructor

- (id)initWithIdentifier:(NSString *)identifier

Parameters

identifier

A unique identifier that will be used to save the queue in the user defaults

Return Value

An instance of this object (OlapicCurationQueue)

Availability

v1.0

Declared In

OlapicCurationQueue.h

saveQueue

Save the current status of the queue on the user defaults

- (void)saveQueue

Availability

v1.0

Declared In

OlapicCurationQueue.h

setMedia:toStatus:

Add a media with a status to the current queue

- (void)setMedia:(OlapicCurationMediaEntity *)media toStatus:(OlapicMediaStatus *)status

Parameters

media

The media object

status

The status to assign

Availability

v1.0

Declared In

OlapicCurationQueue.h

start

Start the queue. It will check the user defaults first to see if there are items still waiting to be processed, and if there are, it will push them to the current instance. Also, make sure there’s a delegate object, or the queue won’t start, and you’ll see an error message on the console

- (void)start

Availability

v1.0

Declared In

OlapicCurationQueue.h