spm仓库支持,通用仓库
lpw
2 days ago 3f21f1e4d3d5e22d57ec392c41098841e8b0784d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
//  WAISocial.h
//  WASdkIntfUI
//
//  Created by GHW-T-01 on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
 
#import <Foundation/Foundation.h>
#import <WASdkIntf/WASocialProxy.h>
@protocol WASharingContent;
 
@interface WAISocial : NSObject
-(void)shareWithContent:(NSObject<WASharingContent>*)shareContent shareWithUI:(BOOL)shareWithUI delegate:(NSObject<WASharingDelegate>*)delegate;
-(void)appInviteWithContent:(WAAppInviteContent*)content delegate:(NSObject<WAAppInviteDialogDelegate>*)delegate;
-(void)queryInvitableFriendsWithDuration:(float)duration completeBlock:(void(^)(NSArray* friends,NSError *error))block;
-(void)gameInviteWithContent:(WAGameRequestContent*)content delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
-(void)getCurrentAppLinkedGroupWithExtInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
-(void)getCurrentUserGroupWithExtInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
-(void)getGroupWithGroupIds:(NSArray*)groupIds extInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
-(void)getGroupsWithExtInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
-(void)joinGroupWithGroupId:(NSString*)groupId extInfo:(NSString*)extInfo completeBlock:(void(^)(NSError* error))block;
-(void)openGroupPageWithGroupUri:(NSString *const)groupUri extInfo:(NSString*)extInfo;
-(void)queryFriendsWithCompleteBlock:(void(^)(NSArray* friends,NSError *error))block;
-(void)queryFBGraphObjectsWithObjectType:(NSString*)objectType completeBlock:(void(^)(NSArray<WAFBObject *>* objects,NSError *error))block;
-(void)fbSendGiftWithContent:(WAGameRequestContent*)content delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
-(void)fbAskForGiftWithContent:(WAGameRequestContent*)content delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
-(void)fbQueryReceivedGiftsWithCompleteBlock:(void(^)(NSArray<WAFBAppRequest *>* gifts,NSError *error))block;
-(void)fbQueryAskForGiftRequestsWithCompleteBlock:(void(^)(NSArray<WAFBAppRequest *>* requests,NSError *error))block;
-(void)fbDeleteRequestWithRequestId:(NSString*)requestId completeBlock:(void(^)(id result,NSError *error))block;
-(void)sendRequestWithRequestType:(NSString *const)requestType title:(NSString*)title message:(NSString*)message objectId:(NSString*)objectId receiptIds:(NSArray*)receiptIds delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
-(void)createInviteInfoWithResults:(NSDictionary*)results handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
-(void)inviteInstallRewardWithTokenString:(NSString*)tokenString handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
-(void)inviteEventRewardWithEventName:(NSString*)eventName handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
-(void)postWithRequestId:(NSString*)requestId andInviteeIds:(NSString*)inviteeIds platform:(NSString *const)platfrom handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
-(void)inviteInstallRewardWithTokenString:(NSString *)accessToken platform:(NSString*)platform inviteIds:(NSString*)inviteIds handler:(void (^)(NSUInteger, NSString *, NSError *))handler;
-(void)inviteEventRewardWithPlatform:(NSString *const)platform eventName:(NSString*)eventName handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
 
-(void)shareInviteLink:(int)shareType completeBlock:(void (^)(NSError* error)) completeBlock;
-(void)getShareFriendsCount:(void (^)(NSError* error,int count)) completeBlock;
-(void)handleDeepLink:(NSString*)targetView params:(NSDictionary*)dic;
 
 
/**
 * 生成邀请链接
 *
 * @param callback 回调
 */
 
 
- (void)generateInviteLink:(NSString*)channel Campaign:(NSString*)campaign params:(NSDictionary*)dic completeBlock:(void (^)(NSError* error,NSString* shortUrlStr,NSString* longUrlStr)) completeBlock;
 
 
/**
 * 生成邀请长链接
 *
 * @param callback 回调
 */
- (void)generateInviteLinkLong:(NSString*)channel Campaign:(NSString*)campaign params:(NSDictionary*)dic completeBlock:(void (^)(NSError* error,NSString* urlStr)) completeBlock;
 
 
 
/**
 * 处理深度链接
 */
 
- (void)handleDeepLink:(NSString*)targetView deepParam:(NSDictionary*)params;
 
@end