CitySDK iOS Library
 All Classes Functions Variables Enumerations Enumerator Properties
POIDeserializer.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 "POI.h"
24 #import "POIS.h"
25 #import "Route.h"
26 #import "Category.h"
27 #import "ListTag.h"
28 #import "Resources.h"
29 #import "Deserializable.h"
30 
31 typedef enum JsonTerms
32 {
33  SPOI,
34  EVENT,
35  ROUTE,
36  TOURISM,
37  _LINKS,
38  CATEGORIES,
39  TAGS,
40  TAG
41 } JsonTerms;
42 
43 typedef enum POIBaseTerms
44 {
45  ID,
46  VALUE,
47  HREF,
48  TYPE,
49  LANG,
50  BASE,
51  CREATED,
52  UPDATED,
53  DELETED,
54  AUTHOR,
55  LICENSE
56 } POIBaseTerms;
57 
58 typedef enum POITermTypeTerms
59 {
60  TERM,
61  SCHEME
62 } POITermTypeTerms;
63 
64 typedef enum POITypeTerms
65 {
66  LABEL,
67  DESCRIPTION,
68  CATEGORY,
69  TIME,
70  LINK,
71  LOCATION
72 } POITypeTerms;
73 
74 typedef enum LocationTerms
75 {
76  POINT,
77  POINT_P,
78  LINE,
79  LINE_STRING,
80  POLYGON,
81  SIMPLE_POLYGON,
82  POS_LIST,
83  ADDRESS,
84  RELATIONSHIP,
85  TARGET_POI,
86  TARGET_EVENT
87 } LocationTerms;
88 
89 @interface POIDeserializer : NSObject
90 - (void) parseJson:(NSDictionary *)json :(NSObject<Deserializable> **)POI;
91 @end