SPiDResponse Class Reference
| Inherits from | NSObject |
| Declared in | SPiDResponse.h SPiDResponse.m |
Overview
SPiDResponse is created for each response from SPiD made by a SPiDRequest
It contains the message as both a object and as raw JSON.
Warning: Received should always check the error property upon receiving a response.
Tasks
Properties
-
errorContains error if there was any, otherwise nil
property -
messageReceived JSON message converted to a dictionary
property -
rawJSONReceived JSON message as a raw string
property
Public methods
-
– initWithJSONData:Initializes SPiD response with the received message
-
– initWithError:Initializes SPiD response with a error
Properties
error
Contains error if there was any, otherwise nil
@property (strong, nonatomic) NSError *errorDeclared In
SPiDResponse.hmessage
Received JSON message converted to a dictionary
@property (strong, nonatomic) NSDictionary *messageDeclared In
SPiDResponse.hrawJSON
Received JSON message as a raw string
@property (strong, nonatomic) NSString *rawJSONDeclared In
SPiDResponse.hInstance Methods
initWithError:
Initializes SPiD response with a error
- (id)initWithError:(NSError *)errorParameters
- error
The received error
Return Value
Declared In
SPiDResponse.hinitWithJSONData:
Initializes SPiD response with the received message
- (id)initWithJSONData:(NSData *)dataParameters
- data
Data received from SPiD
Return Value
Declared In
SPiDResponse.h