IpLocationDataFactory.h.
More...
#include <IpLocationDataFactory.h>
List of all members.
Detailed Description
IpLocationDataFactory.h.
Class preprocesses received server response and provides appropriate language descriptions.
Member Function Documentation
| LocateIpResponse * IpLocationDataFactory::createLocateIpResponse: |
( |
NSDictionary* |
statuses | ) |
[virtual] |
Creates new IpLocation request response object with given statusdictionary (statusCode + statusConstant).
- Parameters:
-
| statuses | given NSDictionary with status key/value pairs (status code, constant and message) |
- Returns:
- LocateIpResponse new response object
Creates new IpLocation is in region response object with given statusdictionary (statusCode + statusConstant).
- Parameters:
-
| results | given NSDictionary with results key/value pairs (whether IP address is in region) |
- Returns:
- LocateIpResultsIsInRegionResponse new response object
Creates new IpLocation results response object with given statusdictionary (statusCode + statusConstant).
- Parameters:
-
| results | given NSDictionary with results key/value pairs (region, regionName etc.) |
- Returns:
- LocateIpResultsResponse new response object
| NSString * IpLocationDataFactory::description:withLanguage: |
( |
int |
statusConstant, |
|
|
[withLanguage] NSString * |
language |
|
) |
| [virtual] |
Creates new status description for given statusConstant.
- Parameters:
-
| statusConstant | constant for to receive appropriate language description for |
| language | appropriate language for status descriptions |
- Returns:
- NSString current status description
| int IpLocationDataFactory::statusConstant: |
( |
NSString * |
statusCode | ) |
[virtual] |
Returns current statusConstant.
- Parameters:
-
| statusCode | current status code of server response |
- Returns:
- int corresponding status constant of service
Member Data Documentation
The documentation for this class was generated from the following files: