ObjectiveC SDK  2.0
Public Member Functions | Protected Attributes
SendSmsDataFactory Class Reference

SendSmsDataFactory.h. More...

#include <SendSmsDataFactory.h>

List of all members.

Public Member Functions

SendSmsResponsecreateSendSmsResponse: (NSDictionary *statuses)
NSString * description:withLanguage: (int statusConstant,[withLanguage] NSString *language)
int statusConstant: (NSString *statusCode)

Protected Attributes

NSString * status
NSString * statusCode
NSString * statusMessage

Detailed Description

SendSmsDataFactory.h.

Class preprocesses received server response and provides appropriate language descriptions.


Member Function Documentation

SendSmsResponse * SendSmsDataFactory::createSendSmsResponse: ( NSDictionary*  statuses) [virtual]

Creates new sms response object with given statusdictionary (statusCode + statusConstant).

Parameters:
statusesgiven NSDictionary with status key/value pairs (status code, constant and message)
Returns:
SendSmsResponse new response object
NSString * SendSmsDataFactory::description:withLanguage: ( int  statusConstant,
[withLanguage] NSString*  language 
) [virtual]

Creates new status description for given statusConstant.

Parameters:
statusConstantconstant for to receive appropriate language description for
languageappropriate language for status descriptions
Returns:
NSString current status description
int SendSmsDataFactory::statusConstant: ( NSString*  statusCode) [virtual]

Returns current statusConstant.

Parameters:
statusCodecurrent status code of server response
Returns:
int corresponding status constant of service

Member Data Documentation

NSString* SendSmsDataFactory::status [protected]
NSString* SendSmsDataFactory::statusCode [protected]
NSString* SendSmsDataFactory::statusMessage [protected]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Properties