SIKAsyncServiceWorkerHelper Class Reference

Inherits from NSObject
Declared in SIKAsyncServiceWorker.h
SIKAsyncServiceWorker.m

Overview

It is the helper class for AsyncServiceWorker It helps to convert request database instance to IService instance and vis versa

– containService:

Check whether it contains the requested service or not

- (BOOL)containService:(SIKServiceRequest *)service

Parameters

service

Service

Return Value

(true/false) TRUE: If service request already exists | FALSE: If service does not exists @throws ServiceException If there is any exception while checking for request

Discussion

Check whether it contains the requested service or not

Declared In

SIKAsyncServiceWorker.m

– convertToService:

Converts the service request database instance to IService instance

- (id<SIKIService>)convertToService:(SIKServiceRequest *)service

Parameters

service

ServiceRequest instance

Return Value

IService instance @throws ServiceException If any exception occur while converting the instance

Discussion

Converts the service request database instance to IService instance

Declared In

SIKAsyncServiceWorker.m

– convertToRequest:

It converts IService instance to database service request instance

- (SIKServiceRequest *)convertToRequest:(id<SIKIService>)iService

Parameters

iService

IService instance

Return Value

ServiceRequest Instance

Discussion

It converts IService instance to database service request instance

Declared In

SIKAsyncServiceWorker.m