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

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

succeedWithObject:

Succeeds the Service Method call with a (NSDictionary *)object

- (void)succeedWithObject:(NSDictionary *)object

Parameters

object

success result object

Discussion

Succeeds the Service Method call with a (NSDictionary *)object

Declared In

STWServiceCallContext.h

succeedWithString:

Succeeds the Service Method call with a string.

- (void)succeedWithString:(NSString *)string

Parameters

string

success result string

Discussion

Succeeds the Service Method call with a string.

Declared In

STWServiceCallContext.h