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...
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
| - (TourismClient *) getClient: |
|
(NSString *) |
homeUrl |
| : |
|
(NSError **) |
err |
|
|
| |
Gets a new TourismClient stub.
- Parameters
-
| homeUrl | the entrypoint of the home URL to query. |
| err | set 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.
|
The documentation for this class was generated from the following files: