GravityClientDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | GravityClient.h |
– didReceiveError:forRequest:
required method
Called when an error is occured during the connection
- (void)didReceiveError:(NSString *)error forRequest:(GravityRequest *)request
Parameters
error |
the error object |
---|---|
request |
the relevant request object |
Discussion
Called when an error is occured during the connection
Declared In
GravityClient.h
– didReceiveResponse:forRequest:
required method
Called when response is received for a request
- (void)didReceiveResponse:(NSString *)response forRequest:(GravityRequest *)request
Parameters
response |
the response |
---|---|
request |
the relevant request object |
Discussion
Called when response is received for a request
Declared In
GravityClient.h
– didReceiveRecommendation:forRequest:
Called when recommendation is received for a request
- (void)didReceiveRecommendation:(GravityItemRecommendation *)recommendation forRequest:(GravityRequest *)request
Parameters
recommendation |
the recommendation |
---|---|
request |
the relevant request object |
Discussion
Called when recommendation is received for a request
Declared In
GravityClient.h
– didReceiveScenarioInfo:forRequest:
Called when scenarioInfo is received for a request
- (void)didReceiveScenarioInfo:(NSArray *)scenarioInfo forRequest:(GravityRequest *)request
Parameters
scenarioInfo |
the scenarioInfo |
---|---|
request |
the relevant request object |
Discussion
Called when scenarioInfo is received for a request
Declared In
GravityClient.h