Represents the resources provided by a server. It contains all the available HypermediaLink given by server alongside their API versions.
More...
|
|
NSMutableDictionary * | resources |
| |
Represents the resources provided by a server. It contains all the available HypermediaLink given by server alongside their API versions.
- Author
- Pedro Cruz
Gets the HypermediaLink with the given version.
- Parameters
-
- Returns
- the HypermediaLink corresponding to the given version or nil if the version is not available
| - (NSArray *) getResources: |
|
(NSString *) |
version |
|
Gets all the resources of a given version
- Parameters
-
| version | the wanted version |
- Returns
- a set of resources of the given version
| - (NSArray *) getVersions |
|
|
|
Gets all the versions stored
- Returns
- a set of versions
| - (bool) hasResource: |
|
(NSString *) |
resource |
| inVersion: |
|
(NSString *) |
version |
|
|
| |
Checks if this Resource has a given resource in a given version.
- Parameters
-
| version | the version of the link |
| resource | the resource to be found. |
- Returns
true if it has the given resource, false otherwise.
| - (bool) hasResourceParameter: |
|
(NSString *) |
parameter |
| inResource: |
|
(NSString *) |
resource |
| inVersion: |
|
(NSString *) |
version |
|
|
| |
Checks whether a given resource in a given version allows the search using a given parameter
- Parameters
-
| version | the wanted version |
| resource | the name of the resource |
| parameter | the search parameter |
- Returns
true if it is allowed, false otherwise
| - (bool) hasVersion: |
|
(NSString *) |
version |
|
Checks the existance of a given version
- Parameters
-
- Returns
true if it is available, false otherwise.
The documentation for this class was generated from the following files: