commit | author | age
|
2370e0
|
1 |
// |
H |
2 |
// ECServiceCocos2dx.h |
|
3 |
// ElvaChatService Cocos2dx SDK |
|
4 |
// |
|
5 |
|
|
6 |
#import <Foundation/Foundation.h> |
|
7 |
@interface ECServiceSdk:NSObject |
|
8 |
|
|
9 |
|
|
10 |
+ (void) init:(NSString*) appSecret Domain:(NSString*) domain AppId:(NSString*) appId; |
|
11 |
+ (void) showElva:(NSString*) playerName PlayerUid:(NSString*) playerUid ServerId:(NSString*) serverId PlayerParseId:(NSString*) playerParseId PlayershowConversationFlag:(NSString*) playershowConversationFlag; |
|
12 |
+ (void) showElva:(NSString*) playerName PlayerUid:(NSString*) playerUid ServerId:(NSString*) serverId PlayerParseId:(NSString*) playerParseId PlayershowConversationFlag:(NSString*) playershowConversationFlag Config:(NSMutableDictionary*) config; |
|
13 |
+ (void) showSingleFAQ:(NSString*) faqId; |
|
14 |
+ (void) showSingleFAQ:(NSString*) faqId Config:(NSMutableDictionary*) config; |
|
15 |
+ (void) showFAQSection:(NSString*) sectionPublishId; |
|
16 |
+ (void) showFAQSection:(NSString*) sectionPublishId Config:(NSMutableDictionary*) config; |
|
17 |
+ (void) showFAQs; |
|
18 |
+ (void) showFAQs:(NSMutableDictionary*) config; |
|
19 |
+ (void) setName:(NSString*) game_name; |
|
20 |
+ (void) registerDeviceToken:(NSString*) deviceToken isVIP:(Boolean) isVip; |
|
21 |
+ (void) setUserId:(NSString*) playerUid;//自助服务,在showFAQ之前调用 |
|
22 |
+ (void) setServerId:(NSString*) serverId;//自助服务,在showFAQ之前调用 |
|
23 |
+ (void) setUserName:(NSString*) playerName;//在需要的接口之前调用,建议游戏刚进入就默认调用 |
|
24 |
+ (void) showConversation:(NSString*) playerUid ServerId:(NSString*) serverId;//请优先实现setUserName接口 |
|
25 |
+ (void) showConversation:(NSString*) playerUid ServerId:(NSString*) serverId Config:(NSMutableDictionary*) config; |
|
26 |
+ (void) setSDKLanguage:(NSString*) sdkLanguage; |
|
27 |
+ (void) setChangeDirection; |
|
28 |
+ (void) setUseDevice; |
|
29 |
+ (void) setEvaluateStar:(int) star; |
|
30 |
+ (void) setNoMenu; |
|
31 |
+ (void) setSendCloseNotification:(BOOL) isSend; |
|
32 |
+ (void) setAccelerateDomain:(NSString *)domain; |
|
33 |
|
|
34 |
+ (void) showVIPChat:(NSString*) appidWeb VIPTags:(NSString *) vipTags; |
|
35 |
|
|
36 |
+ (void) showElvaOP:(NSString*) playerName PlayerUid:(NSString*) playerUid ServerId:(NSString*) serverId PlayerParseId:(NSString*) playerParseId PlayershowConversationFlag:(NSString*) playershowConversationFlag Config:(NSMutableDictionary *)config; |
|
37 |
|
|
38 |
+ (void) showElvaOP:(NSString*) playerName PlayerUid:(NSString*) playerUid ServerId:(NSString*) serverId PlayerParseId:(NSString*) playerParseId PlayershowConversationFlag:(NSString*) playershowConversationFlag Config:(NSMutableDictionary *)config defaultTabIndex:(int)defaultTabIndex; |
|
39 |
|
|
40 |
+ (void) showQACommunity:(NSString *)playerUid PlayName:(NSString *)playerName; |
|
41 |
|
|
42 |
+ (void) showStoreReview; |
|
43 |
|
|
44 |
+ (void) handlePushNotification:(NSDictionary *) table DataFromInApp:(BOOL) dataFromInApp; |
|
45 |
|
|
46 |
+ (int) getNotificationMessageCount; |
|
47 |
|
|
48 |
@end |