CitySDK iOS Library
 All Classes Functions Variables Enumerations Enumerator Properties
TourismClient.h
1 /*
2  * COPYRIGHT NOTICE:
3  *
4  * This file is part of CitySDK WP5 Tourism Objective-C Library.
5  *
6  * CitySDK WP5 Tourism Objective-C Library is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * CitySDK WP5 Tourism Objective-C Library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with CitySDK WP5 Tourism Objective-C Library. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * Copyright 2013, IST
20  */
21 
22 #import <Foundation/Foundation.h>
23 #import "Request.h"
24 #import "JsonParser.h"
25 #import "ParameterTerms.h"
26 #import "ParameterList.h"
27 #import "ListPointOfInterest.h"
28 #import "ListEvent.h"
29 #import "ListRoute.h"
30 #import "PointOfInterest.h"
31 #import "Event.h"
32 #import "Route.h"
33 #import "Category.h"
34 #import "ListTag.h"
35 #import "POI.h"
36 #import "Resources.h"
37 #import "ResourceTerms.h"
38 #import "UriTemplate.h"
39 
40 @interface TourismClient : NSObject <NSCopying>
41 - (id) initWithResources:(Resources *) resources andHomeUrl:(NSString *)homeUrl;
42 - (void) setResources:(Resources *) resources andHomeUrl:(NSString *)homeUrl;
43 - (void) setVersion:(NSString *) version;
44 
45 - (NSArray *) getAvailableResources:(NSError **) err;
46 - (BOOL) hasResource:(ResourceTerm) term :(NSError **) err;
47 - (BOOL) hasAnyResourcesOf:(ResourceType) type :(NSError **) err;
48 - (BOOL) hasResource:(ResourceTerm) term withParameter:(ParameterTerm) parameter :(NSError **) err;
49 
50 - (ListPointOfInterest *) getPois:(ParameterList *)list :(NSError **) err;
51 - (ListEvent *) getEvents:(ParameterList *)list :(NSError **) err;
52 - (ListRoute *) getRoutes:(ParameterList *)list :(NSError **) err;
53 - (Category *) getCategories:(ParameterList *)list :(NSError **) err;
54 - (ListTag *) getTags:(ParameterList *)list :(NSError **) err;
55 
56 - (PointOfInterest *) getPoi:(NSString *) poiBase withId:(NSString *) poiID :(NSError **) err;
57 - (Event *) getEvent:(NSString *) eventBase withID:(NSString *) eventID :(NSError **) err;
58 - (Route *) getRoute:(NSString *) routeBase withID:(NSString *) routeID :(NSError **) err;
59 
60 @end