CitySDK iOS Library
 All Classes Functions Variables Enumerations Enumerator Properties
Instance Methods | Class Methods | List of all members
TourismClientFactory Class Reference

Factory class allowing the creation of a TourismClient. For each link, it makes only one HTTP call, fills a TourismClient, returns it and saves it. In future creations, it verifies if it was already called and if positive returns the result without making a new HTTP call. More...

Inheritance diagram for TourismClientFactory:

Instance Methods

(TourismClient *) - getClient::
 Gets a new TourismClient stub. More...
 

Class Methods

(TourismClientFactory *) + getInstance
 Gets the instance of this factory. More...
 

Detailed Description

Factory class allowing the creation of a TourismClient. For each link, it makes only one HTTP call, fills a TourismClient, returns it and saves it. In future creations, it verifies if it was already called and if positive returns the result without making a new HTTP call.

Author
Pedro Cruz

Method Documentation

- (TourismClient *) getClient: (NSString *)  homeUrl
: (NSError **)  err 

Gets a new TourismClient stub.

Parameters
homeUrlthe entrypoint of the home URL to query.
errset when one of the following errors occur:
  • in case of socket errors;
  • in case of unforeseen errors;
  • if the server returns a code different from HTTP 200 OK.
+ (TourismClientFactory *) getInstance

Gets the instance of this factory.

Returns
the singleton instance of TourismClientFactory.

The documentation for this class was generated from the following files: