VisioMove-Sample  2.1.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Pages
VgMyMapManagerListParser Class Reference

Interface to cycle through the list of maps coming from the remote map manager. More...

Inherits NSObject.

Instance Methods

(instancetype) - init
 
(BOOL) - parseContent:originalRequestURL:
 Parse the result of the list request. More...
 
(BOOL) - isValid
 
(BOOL) - finished
 
(VgMyMapManagerEntry *) - getNext
 returns the next entry on the list More...
 

Detailed Description

Interface to cycle through the list of maps coming from the remote map manager.

Method Documentation

- (BOOL) finished
Returns
YES if there are no more entries.
- (VgMyMapManagerEntry*) getNext

returns the next entry on the list

Returns
VgMyMapManagerEntry object, check mValid to determine validity. Use [listParser finished] to see if last.
- (instancetype) init
- (BOOL) isValid
Returns
YES if the list content is version 0 or version 1 and properly formatted.
- (BOOL) parseContent: (NSData *)  pContent
originalRequestURL: (NSURL *)  pOriginalRequest 

Parse the result of the list request.

In version 0, uses REST API with loging, password and map manager URL. We extract those from the source URL. In version 1, using Hashes, we use the base URL to construct the URL to the final .zip file.

Parameters
pContentjson content
pOriginalRequestrequest from which the content originates.
Version
2.1.5 added original request URL to construct relative URLs

The documentation for this class was generated from the following file:
VisioMove 2.1.5, Visioglobe® 2015