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 |
//支付类型 |
34827e
|
22 |
//typedef enum WAEnumPaymentType{ |
H |
23 |
// WAEnumPaymentTypeGoogle, |
|
24 |
// WAEnumPaymentTypeApple, |
|
25 |
// WAEnumPaymentTypeFree |
|
26 |
//}WAEnumPaymentType; |
dcdc07
|
27 |
|
W |
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 |
|
1ac090
|
56 |
extern NSString* WAEventParameterNameApplePayLogCustomPrefix;//苹果支付自定义事件名称前缀 |
L |
57 |
|
|
58 |
|
dcdc07
|
59 |
extern NSString *const WAEventLaunch; |
W |
60 |
extern NSString *const WAEventStartUp; |
|
61 |
extern NSString *const WAEventCompleteRegistration; |
|
62 |
extern NSString *const WAEventLogin; |
|
63 |
extern NSString *const WAEventInitiatedPayment; |
|
64 |
extern NSString *const WAEventPayment; |
|
65 |
extern NSString *const WAEventInitiatedPurchase; |
|
66 |
extern NSString *const WAEventPurchase; |
|
67 |
extern NSString *const WAEventLevelAchieved; |
|
68 |
extern NSString *const WAEventAddToCart; |
|
69 |
extern NSString *const WAEventAddToWishlist; |
|
70 |
extern NSString *const WAEventSearch; |
|
71 |
extern NSString *const WAEventSpentCredits; |
|
72 |
extern NSString *const WAEventAchievementUnlocked; |
|
73 |
extern NSString *const WAEventContentView; |
|
74 |
extern NSString *const WAEventShare; |
|
75 |
extern NSString *const WAEventInvite; |
|
76 |
extern NSString *const WAEventReEngage; |
|
77 |
extern NSString *const WAEventUpdate; |
|
78 |
extern NSString *const WAEventOpenedFromPushNotification; |
|
79 |
extern NSString *const WAEventUserInfoUpdate; |
|
80 |
extern NSString *const WAEventUserCreate; |
|
81 |
extern NSString *const WAEventTaskUpdate; |
|
82 |
extern NSString *const WAEventGoldUpdate; |
|
83 |
extern NSString *const WAEventUserImport; |
962836
|
84 |
extern NSString *const WAEventSession; |
dcdc07
|
85 |
|
8913df
|
86 |
extern NSString *const WAEventAFTrackingInit; |
34827e
|
87 |
|
H |
88 |
extern NSString *const WAEventInitiatedLoginWay; // 获取登录方式之前 |
|
89 |
extern NSString *const WAEventPostLoginWay; // 获取登录方式之后 |
|
90 |
extern NSString *const WAEventInitiatedPlatformLogin; // 进行登录之前 |
|
91 |
extern NSString *const WAEventPostThirdPartyLogin; // 进行第三方渠道登录之后 |
|
92 |
extern NSString *const WAEventPostWingLogin; // 进行WING平台登录之后 |
8913df
|
93 |
|
1ac090
|
94 |
|
L |
95 |
//苹果支付事件上报打点事件名20200302 |
|
96 |
extern NSString *const WAEventForHandTransaction; //手动消耗事件 |
|
97 |
extern NSString *const WAEventForApplePayStateChanged; //苹果支付状态改变 |
|
98 |
extern NSString *const WAEventForOrderCheckNoTransaction; //下单检测未消耗事件 |
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
dcdc07
|
103 |
extern NSString *const WAEventParameterNameRegistrationMethod; |
W |
104 |
|
|
105 |
extern NSString *const WAEventParameterNameCurrencyType; |
|
106 |
extern NSString *const WAEventParameterNamePrice; |
|
107 |
extern NSString *const WAEventParameterNameContentType; |
|
108 |
extern NSString *const WAEventParameterNameContentID; |
|
109 |
extern NSString *const WAEventParameterNameQuantity; |
|
110 |
extern NSString *const WAEventParameterNameSearchString; |
|
111 |
extern NSString *const WAEventParameterNameSuccess ; |
|
112 |
extern NSString *const WAEventParameterNameMaxRatingValue; |
|
113 |
extern NSString *const WAEventParameterNamePaymentInfoAvailable; |
|
114 |
extern NSString *const WAEventParameterNameItemAmount; |
|
115 |
extern NSString *const WAEventParameterNameItemName;//道具名称 |
|
116 |
extern NSString *const WAEventParameterNameItemId; |
|
117 |
extern NSString *const WAEventParameterNameLevel ; |
|
118 |
extern NSString *const WAEventParameterNameLevelInfo; |
|
119 |
extern NSString *const WAEventParameterNameLevelType; |
|
120 |
extern NSString *const WAEventParameterNameScore; |
|
121 |
extern NSString *const WAEventParameterNameDescription ; |
|
122 |
|
|
123 |
extern NSString *const WAEventParameterNameGender; |
|
124 |
extern NSString *const WAEventParameterNameAge; |
|
125 |
extern NSString *const WAEventParameterNameAccountType; |
|
126 |
extern NSString *const WAEventParameterNameDeviceId; |
|
127 |
extern NSString *const WAEventParameterNameIDFA; |
|
128 |
extern NSString *const WAEventParameterNameServerId; |
|
129 |
|
|
130 |
extern NSString *const WAEventParameterNameStartTime; |
|
131 |
extern NSString *const WAEventParameterNameNowTime; |
962836
|
132 |
extern NSString *const WAEventParameterNameSessionType; |
1ac090
|
133 |
extern NSString *const WAEventParameterUnAdult; |
L |
134 |
|
dcdc07
|
135 |
extern NSString *const WAEventParameterNameTransactionId; |
W |
136 |
extern NSString *const WAEventParameterNamePaymentType; |
|
137 |
extern NSString *const WAEventParameterNameCurrencyAmount; |
|
138 |
extern NSString *const WAEventParameterNameVirtualCoinAmount; |
|
139 |
extern NSString *const WAEventParameterNameVirtualCurrency; |
|
140 |
extern NSString *const WAEventParameterNameIAPName; |
|
141 |
extern NSString *const WAEventParameterNamePaymentType; |
|
142 |
extern NSString *const WAEventParameterNameIAPAmount; |
|
143 |
extern NSString *const WAEventParameterNameIAPId; |
|
144 |
extern NSString *const WAEventParameterNameReceipt; |
|
145 |
extern NSString *const WAEventParameterNameProductIdentifier; |
962836
|
146 |
extern NSString *const WAEventParameterNameRevenue; |
dcdc07
|
147 |
|
W |
148 |
extern NSString *const WAEventParameterNameIsFirstEnter; |
|
149 |
|
|
150 |
extern NSString *const WAEventParameterNameTZ;//时区 |
|
151 |
extern NSString *const WAEventParameterNameDevice;//设备 |
|
152 |
extern NSString *const WAEventParameterNameProduct;//设备产品 |
|
153 |
extern NSString *const WAEventParameterNameModel;//设备版本 |
|
154 |
extern NSString *const WAEventParameterNameDeviceType;//类型 |
|
155 |
extern NSString *const WAEventParameterNameDeviceBrand;//品牌 |
|
156 |
extern NSString *const WAEventParameterNameOP;//运营商 |
|
157 |
extern NSString *const WAEventParameterNameNetwork;//网络制式 |
|
158 |
extern NSString *const WAEventParameterNameOS;//系统 |
|
159 |
extern NSString *const WAEventParameterNameResolution;//分辨率 |
|
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
|
164 |
extern NSString *const WAEventParameterNameOsign; |
|
165 |
|
|
166 |
//创建角色 |
|
167 |
extern NSString *const WAEventParameterNameRegisterTime;//注册时间 |
|
168 |
|
|
169 |
//玩家任务统计 |
|
170 |
extern NSString *const WAEventParameterNameTaskId;//任务id |
|
171 |
extern NSString *const WAEventParameterNameTaskName;//任务名称 |
|
172 |
extern NSString *const WAEventParameterNameTaskType;//任务类型 |
|
173 |
extern NSString *const WAEventParameterNameTaskStatus;//任务状态 |
|
174 |
|
|
175 |
|
|
176 |
//用户资料更新 |
|
177 |
extern NSString *const WAEventParameterNameNickName;//角色名称 |
|
178 |
extern NSString *const WAEventParameterNameVip;//vip等级 |
|
179 |
extern NSString *const WAEventParameterNameStatus;//状态 |
|
180 |
extern NSString *const WAEventParameterNameGameUserId;//游戏角色Id |
|
181 |
extern NSString *const WAEventParameterNameBindGameGold;//绑定钻石 |
|
182 |
extern NSString *const WAEventParameterNameGameGold;//用户钻石数 |
|
183 |
extern NSString *const WAEventParameterNameFighting;//战斗力 |
|
184 |
extern NSString *const WAEventParameterNameRoleType; |
|
185 |
|
|
186 |
//货币状况变更 |
|
187 |
extern NSString *const WAEventParameterNameGoldType;//货币类型 |
|
188 |
extern NSString *const WAEventParameterNameApproach;//变更途径 |
|
189 |
extern NSString *const WAEventParameterNameCurrentAmount;//当前货币数量 |
|
190 |
extern NSString *const WAEventParameterNameAmount;//变更货币数 |
|
191 |
|
34827e
|
192 |
// 获取登录方式之后 |
H |
193 |
extern NSString *const WAEventParameterNameLoginWayCount; // 登录方式个数 |
|
194 |
|
|
195 |
// 进行登录之前、进行第三方渠道登录之后、进行WING平台登录之后 |
|
196 |
extern NSString *const WAEventParameterNamePlatformName; // 登录渠道名称 |
|
197 |
extern NSString *const WAEventParameterNameLoginStatus; // 登录状态 |
|
198 |
|
dcdc07
|
199 |
//支付类型 |
W |
200 |
extern NSString *const WAValueForPaymentTypeApple; |
|
201 |
extern NSString *const WAValueForPaymentTypeGoogle; |
|
202 |
extern NSString *const WAValueForPaymentTypeFree; |
|
203 |
|
|
204 |
|
|
205 |
|
|
206 |
|
1ac090
|
207 |
|
L |
208 |
|
dcdc07
|
209 |
/*! |
W |
210 |
@discussion WATrackProxy 该类用来做数据收集 |
|
211 |
- - - |
|
212 |
*/ |
|
213 |
@interface WATrackProxy : NSObject |
|
214 |
/*! |
|
215 |
@discussion 该方法用来发送数据到各个渠道 |
|
216 |
@param eventName 事件名称 |
|
217 |
@param value 累加值 |
|
218 |
@param params 参数 |
|
219 |
*/ |
|
220 |
+(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params; |
|
221 |
/*! |
|
222 |
@discussion 该方法用来发送数据到指定渠道 |
|
223 |
@param eventName 事件名称 |
|
224 |
@param value 累加值 |
|
225 |
@param params 参数 |
|
226 |
@param platform 渠道 |
|
227 |
*/ |
|
228 |
+(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params platform:(NSString *const)platform; |
|
229 |
/*! |
|
230 |
@abstract 获取collectionInfo |
|
231 |
*/ |
|
232 |
+(NSString*)getCollectionInfo; |
|
233 |
|
|
234 |
/*! |
|
235 |
@discussion 设置点击充值事件(WAEventInitiatedPayment)和充值完成事件(WAEventPayment)是否自动统计,默认为自动统计 |
|
236 |
@param isAuto 是否自动统计事件 |
|
237 |
*/ |
|
238 |
|
|
239 |
+(void)autoTriggerAfterPayment:(BOOL)isAuto; |
|
240 |
+(BOOL)getAutoTriggerAfterPayment; |
|
241 |
+(void)checkParams:(NSDictionary*)params eventName:(NSString*)eventName; |
|
242 |
@end |