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 |
|
9bb554
|
9 |
+ (void) registerUnityOnInitializedCallback:(NSString *) gameObject; |
H |
10 |
+ (void) registerUnityOnMessageArrivedCallback:(NSString *) gameObject; |
2370e0
|
11 |
+ (void) init:(NSString*) appSecret Domain:(NSString*) domain AppId:(NSString*) appId; |
H |
12 |
+ (void) showElva:(NSString*) playerName PlayerUid:(NSString*) playerUid ServerId:(NSString*) serverId PlayerParseId:(NSString*) playerParseId PlayershowConversationFlag:(NSString*) playershowConversationFlag; |
|
13 |
+ (void) showElva:(NSString*) playerName PlayerUid:(NSString*) playerUid ServerId:(NSString*) serverId PlayerParseId:(NSString*) playerParseId PlayershowConversationFlag:(NSString*) playershowConversationFlag Config:(NSMutableDictionary*) config; |
|
14 |
+ (void) showSingleFAQ:(NSString*) faqId; |
|
15 |
+ (void) showSingleFAQ:(NSString*) faqId Config:(NSMutableDictionary*) config; |
|
16 |
+ (void) showFAQSection:(NSString*) sectionPublishId; |
|
17 |
+ (void) showFAQSection:(NSString*) sectionPublishId Config:(NSMutableDictionary*) config; |
|
18 |
+ (void) showFAQs; |
|
19 |
+ (void) showFAQs:(NSMutableDictionary*) config; |
|
20 |
+ (void) setName:(NSString*) game_name; |
|
21 |
+ (void) registerDeviceToken:(NSString*) deviceToken isVIP:(Boolean) isVip; |
|
22 |
+ (void) setUserId:(NSString*) playerUid;//自助服务,在showFAQ之前调用 |
|
23 |
+ (void) setServerId:(NSString*) serverId;//自助服务,在showFAQ之前调用 |
|
24 |
+ (void) setUserName:(NSString*) playerName;//在需要的接口之前调用,建议游戏刚进入就默认调用 |
|
25 |
+ (void) showConversation:(NSString*) playerUid ServerId:(NSString*) serverId;//请优先实现setUserName接口 |
|
26 |
+ (void) showConversation:(NSString*) playerUid ServerId:(NSString*) serverId Config:(NSMutableDictionary*) config; |
|
27 |
+ (void) setSDKLanguage:(NSString*) sdkLanguage; |
|
28 |
+ (void) setChangeDirection; |
|
29 |
+ (void) setUseDevice; |
|
30 |
+ (void) setEvaluateStar:(int) star; |
|
31 |
+ (void) setNoMenu; |
|
32 |
+ (void) setSendCloseNotification:(BOOL) isSend; |
|
33 |
+ (void) setAccelerateDomain:(NSString *)domain; |
9bb554
|
34 |
+ (void) setOpenLog:(BOOL)isOpen; |
2370e0
|
35 |
|
H |
36 |
+ (void) showVIPChat:(NSString*) appidWeb VIPTags:(NSString *) vipTags; |
|
37 |
|
|
38 |
+ (void) showElvaOP:(NSString*) playerName PlayerUid:(NSString*) playerUid ServerId:(NSString*) serverId PlayerParseId:(NSString*) playerParseId PlayershowConversationFlag:(NSString*) playershowConversationFlag Config:(NSMutableDictionary *)config; |
|
39 |
|
|
40 |
+ (void) showElvaOP:(NSString*) playerName PlayerUid:(NSString*) playerUid ServerId:(NSString*) serverId PlayerParseId:(NSString*) playerParseId PlayershowConversationFlag:(NSString*) playershowConversationFlag Config:(NSMutableDictionary *)config defaultTabIndex:(int)defaultTabIndex; |
|
41 |
|
|
42 |
+ (void) showQACommunity:(NSString *)playerUid PlayName:(NSString *)playerName; |
|
43 |
|
|
44 |
+ (void) showStoreReview; |
|
45 |
|
|
46 |
+ (void) handlePushNotification:(NSDictionary *) table DataFromInApp:(BOOL) dataFromInApp; |
|
47 |
|
|
48 |
+ (int) getNotificationMessageCount; |
9bb554
|
49 |
+ (void) showURL:(NSString *) url; |
H |
50 |
+ (void) setUnreadMessageFetchUid:(NSString*) playerUid; |
2370e0
|
51 |
|
H |
52 |
@end |