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
-
– succeed
required 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 *)message
Parameters
- code
error code
- message
error message
Discussion
Fails the Service Method call with an error code and a message.
Declared In
STWServiceCallContext.h
succeed
Succeeds the Service Method call (without any information).
- (void)succeed
Discussion
Succeeds the Service Method call (without any information).
Declared In
STWServiceCallContext.h
succeedWithNumber:
Succeeds the Service Method call with a number.
- (void)succeedWithNumber:(NSNumber *)number
Parameters
- number
success result number
Discussion
Succeeds the Service Method call with a number.
Declared In
STWServiceCallContext.h