PreEmptive Analytics iOS API  2.0
The official iOS API for sending PreEmptive Analytics data.
PAExtendedKey.h
1 //
2 // PA_ExtendedKeys.h
3 // PreEmptiveAnalyticsClient
4 //
5 // Copyright (c) 2013 PreEmptive Solutions. All rights reserved.
6 //
7 
8 #import <Foundation/Foundation.h>
9 
13 @interface PAExtendedKey : NSObject
14 
18 enum PAExtendedKeyType : NSUInteger {
26 };
27 
34 +(PAExtendedKey*)key:(NSString*)aKey string:(NSString*)aString;
35 
42 +(PAExtendedKey*)key:(NSString*)aKey number:(NSNumber*)aNumber;
43 
50 +(PAExtendedKey*)key:(NSString*)aKey int:(int)anInt;
51 
58 +(PAExtendedKey*)key:(NSString*)aKey integer:(NSInteger)anInt;
59 
66 +(PAExtendedKey*)key:(NSString*)aKey long:(long)aLong;
67 
74 +(PAExtendedKey*)key:(NSString*)aKey float:(float)aFloat;
75 
82 +(PAExtendedKey*)key:(NSString*)aKey double:(double)aDouble;
83 
90 +(PAExtendedKey*)key:(NSString*)aKey boolean:(BOOL)aBool;
91 
98 -(id) initWithKey:(NSString*)key string:(NSString*)aString;
99 
106 -(id) initWithKey:(NSString*)key decimal:(NSDecimalNumber*)aDecimal;
107 
114 -(id) initWithKey:(NSString*)key number:(NSNumber*)aNumber;
115 
122 -(id) initWithKey:(NSString *)key int:(int)anInt;
123 
130 -(id) initWithKey:(NSString *)key integer:(NSInteger)anInt;
131 
138 -(id) initWithKey:(NSString *)key long:(long)aLong;
139 
146 -(id) initWithKey:(NSString *)key float:(float)aFloat;
147 
154 -(id) initWithKey:(NSString *)key double:(double)aDouble;
155 
162 -(id) initWithKey:(NSString *)key boolean:(BOOL)aBool;
163 
167 @property (strong, readonly) NSString* key;
168 
172 @property (strong, readonly) NSString* value;
173 
177 @property (readonly) enum PAExtendedKeyType type;
178 
179 
180 @end
Class that handles the creation of extended key data used for sending additional information with mes...
Definition: PAExtendedKey.h:13
The value is a number.
Definition: PAExtendedKey.h:20
PAExtendedKeyType
The type of value.
Definition: PAExtendedKey.h:18
The value is a string.
Definition: PAExtendedKey.h:19