CitySDK iOS Library
 All Classes Functions Variables Enumerations Enumerator Properties
Instance Methods | Properties | List of all members
JsonParser Class Reference

Parses a given JSON message. More...

Inheritance diagram for JsonParser:

Instance Methods

(Resources *) - parseJsonAsResources:
 Parses the JSON as Resources. More...
 
(PointOfInterest *) - parseJsonAsPointOfInterest:
 Parses the JSON as a PointOfInterest. More...
 
(Event *) - parseJsonAsEvent:
 Parses the JSON as a Event. More...
 
(Route *) - parseJsonAsRoute:
 Parses the JSON as a Route. More...
 
(ListPointOfInterest *) - parseJsonAsListOfPois:
 Parses the JSON as a ListPointOfInterest. More...
 
(ListEvent *) - parseJsonAsListOfEvents:
 Parses the JSON as a ListEvent. More...
 
(ListRoute *) - parseJsonAsListOfRoutes:
 Parses the JSON as a ListRoute. More...
 
(Category *) - parseJsonAsCategory:
 Parses the JSON as a Category. More...
 
(ListTag *) - parseJsonAsTags:
 Parses the JSON as a ListTag. More...
 
(POI *) - parseJsonAsGeneric:
 Parses the JSON as a generic POI. More...
 

Properties

NSString * json
 The JSON to parse.
 
POIDeserializer * deserializer
 JSON deserializer.
 

Detailed Description

Parses a given JSON message.

It allows the deserialization of:

Author
pedrocruz

Method Documentation

- (Category *) parseJsonAsCategory: (NSError**)  error

Parses the JSON as a Category.

Parameters
errorcontains information about any unforeseen errors.
Returns
a Category containing the content of the JSON message.
- (Event *) parseJsonAsEvent: (NSError**)  error

Parses the JSON as a Event.

Parameters
errorcontains information about any unforeseen errors.
Returns
a Event containing the content of the JSON message.
- (POI *) parseJsonAsGeneric: (NSError**)  error

Parses the JSON as a generic POI.

Parameters
errorcontains information about any unforeseen errors.
Returns
a POI containing the content of the JSON message.
- (ListEvent *) parseJsonAsListOfEvents: (NSError**)  error

Parses the JSON as a ListEvent.

Parameters
errorcontains information about any unforeseen errors.
Returns
a ListEvent containing the content of the JSON message.
- (ListPointOfInterest *) parseJsonAsListOfPois: (NSError**)  error

Parses the JSON as a ListPointOfInterest.

Parameters
errorcontains information about any unforeseen errors.
Returns
a ListPointOfInterest containing the content of the JSON message.
- (ListRoute *) parseJsonAsListOfRoutes: (NSError**)  error

Parses the JSON as a ListRoute.

Parameters
errorcontains information about any unforeseen errors.
Returns
a ListRoute containing the content of the JSON message.
- (PointOfInterest *) parseJsonAsPointOfInterest: (NSError**)  error

Parses the JSON as a PointOfInterest.

Parameters
errorcontains information about any unforeseen errors.
Returns
a PointOfInterest containing the content of the JSON message.
- (Resources *) parseJsonAsResources: (NSError**)  error

Parses the JSON as Resources.

Parameters
errorcontains information about any unforeseen errors.
Returns
a Resources containing the content of the JSON message.
- (Route *) parseJsonAsRoute: (NSError**)  error

Parses the JSON as a Route.

Parameters
errorcontains information about any unforeseen errors.
Returns
a Route containing the content of the JSON message.
- (ListTag *) parseJsonAsTags: (NSError**)  error

Parses the JSON as a ListTag.

Parameters
errorcontains information about any unforeseen errors.
Returns
a ListTag containing the content of the JSON message.

The documentation for this class was generated from the following files: