// // WAISocial.h // WASdkIntfUI // // Created by GHW-T-01 on 16/3/1. // Copyright © 2016年 GHW-T-01. All rights reserved. // #import #import "WASocialProxy.h" @protocol WASharingContent; @interface WAISocial : NSObject -(void)shareWithContent:(NSObject*)shareContent shareWithUI:(BOOL)shareWithUI delegate:(NSObject*)delegate; -(void)appInviteWithContent:(WAAppInviteContent*)content delegate:(NSObject*)delegate; -(void)queryInvitableFriendsWithDuration:(float)duration completeBlock:(void(^)(NSArray* friends,NSError *error))block; -(void)gameInviteWithContent:(WAGameRequestContent*)content delegate:(NSObject*)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* objects,NSError *error))block; -(void)fbSendGiftWithContent:(WAGameRequestContent*)content delegate:(NSObject*)delegate; -(void)fbAskForGiftWithContent:(WAGameRequestContent*)content delegate:(NSObject*)delegate; -(void)fbQueryReceivedGiftsWithCompleteBlock:(void(^)(NSArray* gifts,NSError *error))block; -(void)fbQueryAskForGiftRequestsWithCompleteBlock:(void(^)(NSArray* 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*)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; @end