APHelperMethods Class Reference
Inherits from | NSObject |
Declared in | APHelperMethods.h |
Tasks
-
+ checkForErrorStatus:
Helper method used to check for any errors.
-
+ arrayOfPropertiesFromJSONResponse:
Helper method to parse the properties from a json response
-
+ dictionaryOfPropertiesFromJSONResponse:
Helper method to parse the properties from a json response
-
+ addHeadersToMKNetworkOperation:
Helper method to add the session id and environment to the request headers.
Class Methods
addHeadersToMKNetworkOperation:
Helper method to add the session id and environment to the request headers.
+ (void)addHeadersToMKNetworkOperation:(MKNetworkOperation *)operation
Parameters
- operation
The operation to add the headers to.
Discussion
Helper method to add the session id and environment to the request headers.
Declared In
APHelperMethods.h
arrayOfPropertiesFromJSONResponse:
Helper method to parse the properties from a json response
+ (NSArray *)arrayOfPropertiesFromJSONResponse:(id)response
Parameters
- response
Response received from the server.
Return Value
An array of properties
Discussion
Helper method to parse the properties from a json response
Declared In
APHelperMethods.h
checkForErrorStatus:
Helper method used to check for any errors.
+ (APError *)checkForErrorStatus:(id)response
Parameters
- response
Response received from the server.
Discussion
Helper method used to check for any errors.
Declared In
APHelperMethods.h
dictionaryOfPropertiesFromJSONResponse:
Helper method to parse the properties from a json response
+ (NSDictionary *)dictionaryOfPropertiesFromJSONResponse:(id)response
Parameters
- response
Response received from the server.
Return Value
A dictionary of properties
Discussion
Helper method to parse the properties from a json response
Declared In
APHelperMethods.h