CitySDK iOS Library
 All Classes Functions Variables Enumerations Enumerator Properties
JsonParser.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 
24 #import "PointOfInterest.h"
25 #import "Event.h"
26 #import "Route.h"
27 #import "ListPointOfInterest.h"
28 #import "ListEvent.h"
29 #import "ListRoute.h"
30 #import "ListTag.h"
31 #import "Category.h"
32 #import "POI.h"
33 #import "POIDeserializer.h"
34 
35 @interface JsonParser : NSObject
39 @property (nonatomic, copy) NSString *json;
43 @property (readonly, retain) POIDeserializer *deserializer;
44 
45 - (Resources *) parseJsonAsResources:(NSError**)error;
46 - (PointOfInterest *) parseJsonAsPointOfInterest:(NSError**)error;
47 - (Event *) parseJsonAsEvent:(NSError**)error;
48 - (Route *) parseJsonAsRoute:(NSError**)error;
49 - (ListPointOfInterest *) parseJsonAsListOfPois:(NSError**)error;
50 - (ListEvent *) parseJsonAsListOfEvents:(NSError**)error;
51 - (ListRoute *) parseJsonAsListOfRoutes:(NSError**)error;
52 - (Category *) parseJsonAsCategory:(NSError**)error;
53 - (ListTag *) parseJsonAsTags:(NSError**)error;
54 - (POI *) parseJsonAsGeneric:(NSError**)error;
55 
56 @end