Stub used for the CitySDK Tourism API. It abstracts applications from the different requests allowed in the API and returns the correct data objects from such calls.
More...
Stub used for the CitySDK Tourism API. It abstracts applications from the different requests allowed in the API and returns the correct data objects from such calls.
- Author
- Pedro Cruz
| - (NSArray *) getAvailableResources: |
|
(NSError **) |
err |
|
Gets all the available capacities for the queried servers.
- Parameters
-
| err | to indicate a given error. |
- Returns
- a set of terms allowed for the server or nil (and an error description).
Returns the list of Category available. List should contain a parameter its value set to one of the following:
- Parameters
-
| list | the parameters that should be followed |
| err | error can be set to the following:
-
if the given parameterList contains invalid Category parameters;
-
in case of socket errors;
-
if the server does not support the a term found in the parameterList;
-
in case of unforeseen errors;
-
if the server returns a code different from HTTP 200 OK.
|
- Returns
- a Category.
| - (Event *) getEvent: |
|
(NSString *) |
eventBase |
| withID: |
|
(NSString *) |
eventID |
| : |
|
(NSError **) |
err |
|
|
| |
Returns the a given Event.
- Parameters
-
| eventBase | the base URL of the Event. |
| eventID | the ID of the Event. |
| err | error can be set to the following:
-
in case of socket errors;
-
in case of unforeseen errors;
-
if the server returns a code different from HTTP 200 OK.
|
- Returns
- a Event containing the description of the Event.
Returns a list of Events following the desired parameters.
If such parameters are not valid terms for an Event, it will set an error.
- Parameters
-
| list | the parameters that should be followed. |
| err | error can be set to the following:
-
if the given parameterList contains invalid Event terms;
-
in case of socket errors;
-
if the server does not support the a term found in the parameterList;
-
in case of unforeseen errors;
-
if the server returns a code different from HTTP 200 OK.
|
- Returns
- a ListEvent.
| - (PointOfInterest *) getPoi: |
|
(NSString *) |
poiBase |
| withId: |
|
(NSString *) |
poiID |
| : |
|
(NSError **) |
err |
|
|
| |
Returns the complete description of a given POI.
- Parameters
-
| poiBase | the base URL of the POI. |
| poiID | the ID of the POI. |
| err | error can be set to the following:
-
in case of socket errors;
-
in case of unforeseen errors;
-
if the server returns a code different from HTTP 200 OK.
|
- Returns
- a PointOfInterest containing a complete description of the POI.
Returns a list of POIs following the desired parameters.
If such parameters are not valid terms for a POI, it will set an error.
- Parameters
-
| list | the parameters that should be followed. |
| err | error can be set to the following:
-
if the given parameterList contains invalid POI terms;
-
in case of socket errors;
-
if the server does not support the a term found in the parameterList;
-
in case of unforeseen errors;
-
if the server returns a code different from HTTP 200 OK.
|
- Returns
- a ListPointOfInterest.
| - (Route *) getRoute: |
|
(NSString *) |
routeBase |
| withID: |
|
(NSString *) |
routeID |
| : |
|
(NSError **) |
err |
|
|
| |
Returns the a given Route.
- Parameters
-
| routeBase | the base URL of the Route. |
| routeID | the ID of the Route. |
| err | error can be set to the following:
-
in case of socket errors;
-
in case of unforeseen errors;
-
if the server returns a code different from HTTP 200 OK.
|
- Returns
- a Route containing the description of the Route.
Returns a list of Routes following the desired parameters.
If such parameters are not valid terms for a Route, it will set an error.
- Parameters
-
| list | the parameters that should be followed. |
| err | error can be set to the following:
-
if the given parameterList contains invalid Route terms;
-
in case of socket errors;
-
if the server does not support the a term found in the parameterList;
-
in case of unforeseen errors;
-
if the server returns a code different from HTTP 200 OK.
|
- Returns
- a ListRoute.
Returns the list of Tag available. List should contain a parameter its value set to one of the following:
- Parameters
-
| list | the parameters that should be followed |
| err | error can be set to the following:
-
if the given parameterList contains invalid Tag parameters;
-
in case of socket errors;
-
if the server does not support the a term found in the parameterList;
-
in case of unforeseen errors;
-
if the server returns a code different from HTTP 200 OK.
|
- Returns
- a ListTag.
| - (BOOL) hasAnyResourcesOf: |
|
(ResourceType) |
type |
| : |
|
(NSError **) |
err |
|
|
| |
Checks whether the server has a given resource.
- Parameters
-
| type | the type to search for. |
| err | to indicate a given error. |
- Returns
true if the server has any given resource of the referred type false otherwise.
| - (BOOL) hasResource: |
|
(ResourceTerm) |
term |
| : |
|
(NSError **) |
err |
|
|
| |
Checks whether a given resource is available for the queried server.
- Parameters
-
| term | a given term. |
| err | to indicate a given error. |
- Returns
true if available, false otherwise. In case of negative return, err may contain an error description.
| - (BOOL) hasResource: |
|
(ResourceTerm) |
resource |
| withParameter: |
|
(ParameterTerm) |
parameter |
| : |
|
(NSError **) |
err |
|
|
| |
Checks whether a given resource is presented with a given parameter.
- Parameters
-
| resource | the resource term. |
| parameter | the parameter term to check. |
| err | to indicate a given error. |
- Returns
true if the resource has a given parameter or false otherwise.
| - (id) initWithResources: |
|
(Resources *) |
resources |
| andHomeUrl: |
|
(NSString *) |
homeUrl |
|
|
| |
Initializes with a given resource for a given home URL.
- Parameters
-
| resources | the resources of the server |
| homeUrl | the home URI of the server |
| - (void) setResources: |
|
(Resources *) |
resources |
| andHomeUrl: |
|
(NSString *) |
homeUrl |
|
|
| |
Sets the client stub with a given resources for a given homeUrl.
- Parameters
-
| resources | the resources of the server |
| homeUrl | the home URI of the server |
| - (void) setVersion: |
|
(NSString *) |
version |
|
Sets the client stub to use a given version.
- Parameters
-
| version | the version to be used. |
The documentation for this class was generated from the following files: