Inherits from OlapicHandler : NSObject
Declared in OlapicMediaStatusHandler.h

Overview

The object in charge of creating and managing the OlapicStatus objects

Instance Methods

createStatusFromString:

Generate a status entity with a given name. It will not be saved on the API, this is just a shortcut to avoid downloading all the statuses and then just filter the one you want.

- (OlapicMediaStatus *)createStatusFromString:(NSString *)name

Parameters

name

The name of your status

Return Value

The new status

Declared In

OlapicMediaStatusHandler.h

getStatuses:onFailure:

Get all the statuses

- (void)getStatuses:(void ( ^ ) ( NSDictionary *response ))success onFailure:(void ( ^ ) ( NSError *error ))failure

Parameters

success

A callback block for when the statuses are successfully retrieved

failure

A callback block for when the SDK can’t get the statuses

Availability

v1.0

Discussion

Example:

[[[OlapicSDK sharedOlapicSDK] statuses]   getStatuses:^(NSDictionary *response){
                                              NSLog(@"Statuses %@",response);
                                          }
                                          onFailure:^(NSError *error){
                                              NSLog(@"Error: %@",error.description);
                                          }];

Declared In

OlapicMediaStatusHandler.h