OlapicMediaStatusHandler Class Reference
| Inherits from | OlapicHandler : NSObject |
| Declared in | OlapicMediaStatusHandler.h |
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 *)nameParameters
- name
The name of your status
Return Value
The new status
Declared In
OlapicMediaStatusHandler.hgetStatuses:onFailure:
Get all the statuses
- (void)getStatuses:(void ( ^ ) ( NSDictionary *response ))success onFailure:(void ( ^ ) ( NSError *error ))failureParameters
- 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