STWServiceCallContext Protocol Reference
| Conforms to | NSObject |
| Declared in | STWServiceCallContext.h |
Overview
STWServiceCallContext is protocol represents Service Method Call context.
Each Service Method implementations succeed or fail the Service Method Call using protocol’s methods.
Tasks
-
– succeedrequired method -
– succeedWithString:required method -
– succeedWithNumber:required method -
– succeedWithObject:required method -
– failWithCode:withMessage:required method
Instance Methods
failWithCode:withMessage:
Fails the Service Method call with an error code and a message.
- (void)failWithCode:(NSInteger)code withMessage:(NSString *)messageParameters
- code
error code
- message
error message
Discussion
Fails the Service Method call with an error code and a message.
Declared In
STWServiceCallContext.hsucceed
Succeeds the Service Method call (without any information).
- (void)succeedDiscussion
Succeeds the Service Method call (without any information).
Declared In
STWServiceCallContext.hsucceedWithNumber:
Succeeds the Service Method call with a number.
- (void)succeedWithNumber:(NSNumber *)numberParameters
- number
success result number
Discussion
Succeeds the Service Method call with a number.
Declared In
STWServiceCallContext.h