commit | author | age
|
dcdc07
|
1 |
// |
W |
2 |
// WATrackProxy.h |
|
3 |
// WASdkIntfUI |
|
4 |
// |
|
5 |
// Created by WA-T-01 on 16/3/1. |
|
6 |
// Copyright © 2016年 WA-T-01. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
//数据类型 |
|
12 |
typedef enum WAParameterType{ |
|
13 |
WAParameterTypeString, |
|
14 |
WAParameterTypeInt, |
|
15 |
WAParameterTypeDouble, |
|
16 |
WAParameterTypeBool, |
|
17 |
WAParameterTypeEnumThree, |
|
18 |
WAParameterTypeData |
|
19 |
}WAParameterType; |
|
20 |
|
|
21 |
//支付类型 |
|
22 |
typedef enum WAEnumPaymentType{ |
|
23 |
WAEnumPaymentTypeGoogle, |
|
24 |
WAEnumPaymentTypeApple, |
|
25 |
WAEnumPaymentTypeFree |
|
26 |
}WAEnumPaymentType; |
|
27 |
|
|
28 |
//性别 |
|
29 |
typedef enum WAEnumGender{ |
|
30 |
WAEnumGenderFemale, |
|
31 |
WAEnumGenderMale, |
|
32 |
WAEnumGenderUnknown |
|
33 |
}WAEnumGender; |
|
34 |
|
|
35 |
//levelType |
|
36 |
typedef enum WALevelType{ |
|
37 |
// Highest level reached |
|
38 |
WALevelTypeHighestLevelReached = 1, |
|
39 |
// Current area level reached |
|
40 |
WALevelTypeCurrentArea = 2, |
|
41 |
// Current character level reached |
|
42 |
WALevelTypeCharacterLevel = 3, |
|
43 |
// Other sequential level reached |
|
44 |
WALevelTypeOtherSequential = 4, |
|
45 |
// Current non sequential level reached |
|
46 |
WALevelTypeOtherNonsequential = 5 |
|
47 |
|
|
48 |
} WALevelType; |
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
extern NSString* WAEventParameterNameCustomMethodPrefix;//自定义事件名称前缀 |
|
54 |
|
|
55 |
|
|
56 |
extern NSString *const WAEventLaunch; |
|
57 |
extern NSString *const WAEventStartUp; |
|
58 |
extern NSString *const WAEventCompleteRegistration; |
|
59 |
extern NSString *const WAEventLogin; |
|
60 |
extern NSString *const WAEventInitiatedPayment; |
|
61 |
extern NSString *const WAEventPayment; |
|
62 |
extern NSString *const WAEventInitiatedPurchase; |
|
63 |
extern NSString *const WAEventPurchase; |
|
64 |
extern NSString *const WAEventLevelAchieved; |
|
65 |
extern NSString *const WAEventAddToCart; |
|
66 |
extern NSString *const WAEventAddToWishlist; |
|
67 |
extern NSString *const WAEventSearch; |
|
68 |
extern NSString *const WAEventSpentCredits; |
|
69 |
extern NSString *const WAEventAchievementUnlocked; |
|
70 |
extern NSString *const WAEventContentView; |
|
71 |
extern NSString *const WAEventShare; |
|
72 |
extern NSString *const WAEventInvite; |
|
73 |
extern NSString *const WAEventReEngage; |
|
74 |
extern NSString *const WAEventUpdate; |
|
75 |
extern NSString *const WAEventOpenedFromPushNotification; |
|
76 |
extern NSString *const WAEventUserInfoUpdate; |
|
77 |
extern NSString *const WAEventUserCreate; |
|
78 |
extern NSString *const WAEventTaskUpdate; |
|
79 |
extern NSString *const WAEventGoldUpdate; |
|
80 |
extern NSString *const WAEventUserImport; |
962836
|
81 |
extern NSString *const WAEventSession; |
dcdc07
|
82 |
|
8913df
|
83 |
extern NSString *const WAEventAFTrackingInit; |
H |
84 |
|
dcdc07
|
85 |
extern NSString *const WAEventParameterNameRegistrationMethod; |
W |
86 |
|
|
87 |
extern NSString *const WAEventParameterNameCurrencyType; |
|
88 |
extern NSString *const WAEventParameterNamePrice; |
|
89 |
extern NSString *const WAEventParameterNameContentType; |
|
90 |
extern NSString *const WAEventParameterNameContentID; |
|
91 |
extern NSString *const WAEventParameterNameQuantity; |
|
92 |
extern NSString *const WAEventParameterNameSearchString; |
|
93 |
extern NSString *const WAEventParameterNameSuccess ; |
|
94 |
extern NSString *const WAEventParameterNameMaxRatingValue; |
|
95 |
extern NSString *const WAEventParameterNamePaymentInfoAvailable; |
|
96 |
extern NSString *const WAEventParameterNameItemAmount; |
|
97 |
extern NSString *const WAEventParameterNameItemName;//道具名称 |
|
98 |
extern NSString *const WAEventParameterNameItemId; |
|
99 |
extern NSString *const WAEventParameterNameLevel ; |
|
100 |
extern NSString *const WAEventParameterNameLevelInfo; |
|
101 |
extern NSString *const WAEventParameterNameLevelType; |
|
102 |
extern NSString *const WAEventParameterNameScore; |
|
103 |
extern NSString *const WAEventParameterNameDescription ; |
|
104 |
|
|
105 |
extern NSString *const WAEventParameterNameGender; |
|
106 |
extern NSString *const WAEventParameterNameAge; |
|
107 |
extern NSString *const WAEventParameterNameAccountType; |
|
108 |
extern NSString *const WAEventParameterNameDeviceId; |
|
109 |
extern NSString *const WAEventParameterNameIDFA; |
|
110 |
extern NSString *const WAEventParameterNameServerId; |
|
111 |
|
|
112 |
extern NSString *const WAEventParameterNameStartTime; |
|
113 |
extern NSString *const WAEventParameterNameNowTime; |
962836
|
114 |
extern NSString *const WAEventParameterNameSessionType; |
dcdc07
|
115 |
extern NSString *const WAEventParameterNameTransactionId; |
W |
116 |
extern NSString *const WAEventParameterNamePaymentType; |
|
117 |
extern NSString *const WAEventParameterNameCurrencyAmount; |
|
118 |
extern NSString *const WAEventParameterNameVirtualCoinAmount; |
|
119 |
extern NSString *const WAEventParameterNameVirtualCurrency; |
|
120 |
extern NSString *const WAEventParameterNameIAPName; |
|
121 |
extern NSString *const WAEventParameterNamePaymentType; |
|
122 |
extern NSString *const WAEventParameterNameIAPAmount; |
|
123 |
extern NSString *const WAEventParameterNameIAPId; |
|
124 |
extern NSString *const WAEventParameterNameReceipt; |
|
125 |
extern NSString *const WAEventParameterNameProductIdentifier; |
962836
|
126 |
extern NSString *const WAEventParameterNameRevenue; |
dcdc07
|
127 |
|
W |
128 |
extern NSString *const WAEventParameterNameIsFirstEnter; |
|
129 |
|
|
130 |
extern NSString *const WAEventParameterNameTZ;//时区 |
|
131 |
extern NSString *const WAEventParameterNameDevice;//设备 |
|
132 |
extern NSString *const WAEventParameterNameProduct;//设备产品 |
|
133 |
extern NSString *const WAEventParameterNameModel;//设备版本 |
|
134 |
extern NSString *const WAEventParameterNameDeviceType;//类型 |
|
135 |
extern NSString *const WAEventParameterNameDeviceBrand;//品牌 |
|
136 |
extern NSString *const WAEventParameterNameOP;//运营商 |
|
137 |
extern NSString *const WAEventParameterNameNetwork;//网络制式 |
|
138 |
extern NSString *const WAEventParameterNameOS;//系统 |
|
139 |
extern NSString *const WAEventParameterNameResolution;//分辨率 |
|
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
|
144 |
extern NSString *const WAEventParameterNameOsign; |
|
145 |
|
|
146 |
//创建角色 |
|
147 |
extern NSString *const WAEventParameterNameRegisterTime;//注册时间 |
|
148 |
|
|
149 |
//玩家任务统计 |
|
150 |
extern NSString *const WAEventParameterNameTaskId;//任务id |
|
151 |
extern NSString *const WAEventParameterNameTaskName;//任务名称 |
|
152 |
extern NSString *const WAEventParameterNameTaskType;//任务类型 |
|
153 |
extern NSString *const WAEventParameterNameTaskStatus;//任务状态 |
|
154 |
|
|
155 |
|
|
156 |
//用户资料更新 |
|
157 |
extern NSString *const WAEventParameterNameNickName;//角色名称 |
|
158 |
extern NSString *const WAEventParameterNameVip;//vip等级 |
|
159 |
extern NSString *const WAEventParameterNameStatus;//状态 |
|
160 |
extern NSString *const WAEventParameterNameGameUserId;//游戏角色Id |
|
161 |
extern NSString *const WAEventParameterNameBindGameGold;//绑定钻石 |
|
162 |
extern NSString *const WAEventParameterNameGameGold;//用户钻石数 |
|
163 |
extern NSString *const WAEventParameterNameFighting;//战斗力 |
|
164 |
extern NSString *const WAEventParameterNameRoleType; |
|
165 |
|
|
166 |
//货币状况变更 |
|
167 |
extern NSString *const WAEventParameterNameGoldType;//货币类型 |
|
168 |
extern NSString *const WAEventParameterNameApproach;//变更途径 |
|
169 |
extern NSString *const WAEventParameterNameCurrentAmount;//当前货币数量 |
|
170 |
extern NSString *const WAEventParameterNameAmount;//变更货币数 |
|
171 |
|
|
172 |
//支付类型 |
|
173 |
extern NSString *const WAValueForPaymentTypeApple; |
|
174 |
extern NSString *const WAValueForPaymentTypeGoogle; |
|
175 |
extern NSString *const WAValueForPaymentTypeFree; |
|
176 |
|
|
177 |
|
|
178 |
|
|
179 |
|
|
180 |
/*! |
|
181 |
@discussion WATrackProxy 该类用来做数据收集 |
|
182 |
- - - |
|
183 |
*/ |
|
184 |
@interface WATrackProxy : NSObject |
|
185 |
/*! |
|
186 |
@discussion 该方法用来发送数据到各个渠道 |
|
187 |
@param eventName 事件名称 |
|
188 |
@param value 累加值 |
|
189 |
@param params 参数 |
|
190 |
*/ |
|
191 |
+(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params; |
|
192 |
/*! |
|
193 |
@discussion 该方法用来发送数据到指定渠道 |
|
194 |
@param eventName 事件名称 |
|
195 |
@param value 累加值 |
|
196 |
@param params 参数 |
|
197 |
@param platform 渠道 |
|
198 |
*/ |
|
199 |
+(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params platform:(NSString *const)platform; |
|
200 |
/*! |
|
201 |
@abstract 获取collectionInfo |
|
202 |
*/ |
|
203 |
+(NSString*)getCollectionInfo; |
|
204 |
|
|
205 |
/*! |
|
206 |
@discussion 设置点击充值事件(WAEventInitiatedPayment)和充值完成事件(WAEventPayment)是否自动统计,默认为自动统计 |
|
207 |
@param isAuto 是否自动统计事件 |
|
208 |
*/ |
|
209 |
|
|
210 |
+(void)autoTriggerAfterPayment:(BOOL)isAuto; |
|
211 |
+(BOOL)getAutoTriggerAfterPayment; |
|
212 |
+(void)checkParams:(NSDictionary*)params eventName:(NSString*)eventName; |
|
213 |
@end |