SFS2X Objective-C API  1.7.13
iOS / macOS / tvOS
BlockBuddyRequest.h
1 //
2 // BlockBuddyRequest.h
3 // SFS2X
4 //
5 // Original development by Infosfer Game Technologies Ltd. | http://www.infosfer.com.
6 //
7 // Maintained and developed by A51 Integrated.
8 // Copyright 2012 A51 Integrated | http://a51integrated.com. All rights reserved.
9 //
10 
11 #import "BaseRequest.h"
12 
13 EXTERN NSString * const BlockBuddyRequest_KEY_BUDDY_NAME;
14 EXTERN NSString * const BlockBuddyRequest_KEY_BUDDY_BLOCK_STATE;
15 EXTERN NSString * const BlockBuddyRequest_KEY_BUDDY;
16 
17 /** Block/Unblock a Buddy in the User's BuddyList
18 
19  Blocked buddies won't be able to see the the User online status and send messages or events
20  */
21 @interface BlockBuddyRequest : BaseRequest {
22 @private
23  NSString *_buddyName;
24  BOOL _blocked;
25 }
26 
27 @property (strong) NSString *buddyName;
28 
29 
30 -(id)initWithBuddyName:(NSString *)buddyName blocked:(BOOL)blocked;
31 
32 /** Request to Block/Unblock a Buddy in the User's BuddyList
33 
34  @param buddyName the name of the buddy to add
35  @param blocked the blocked status
36 
37  @see [ISFSEvents onBuddyBlock:]
38  @see [ISFSEvents onBuddyError:]
39  @see AddBuddyRequest
40  @see RemoveBuddyRequest
41 
42  */
43 +(id)requestWithBuddyName:(NSString *)buddyName blocked:(BOOL)blocked;
44 
45 @end
BlockBuddyRequest
Definition: BlockBuddyRequest.h:21