PreEmptive Analytics iOS API  2.0
The official iOS API for sending PreEmptive Analytics data.
PAFieldGenerator Class Reference

A helper class to deal with GUID and timestamps. More...

Inheritance diagram for PAFieldGenerator:

Class Methods

(NSString *) + generateGUID
 Generates a valid GUID. More...
 
(NSString *) + generateTimeStamp
 Generates a timestamp for the current time. More...
 
(NSDate *) + parseDate:
 Parses the provided data. More...
 
(BOOL) + validateGUID:
 Determines if the GUID is valid. More...
 

Detailed Description

A helper class to deal with GUID and timestamps.

Definition at line 13 of file PAFieldGenerator.h.

Method Documentation

+ (NSString *) generateGUID

Generates a valid GUID.

Returns
A valid GUID.
+ (NSString *) generateTimeStamp

Generates a timestamp for the current time.

Returns
A timestamp.
+ (NSDate *) parseDate: (NSString *)  date

Parses the provided data.

Parameters
dateA date in the format: yyyy-MM-dd'T'HH:mm:ss.SSS'Z' (E.G. "2013-02-28T15:22:34.567Z" for February 28th, 2013 at 3:22:34.457 GMT)
Returns
An NSDate* (or nil).
+ (BOOL) validateGUID: (NSString *)  aGUID

Determines if the GUID is valid.

Parameters
aGUIDThe GUID to test
Returns
YES if the string is a valid GUID.

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