SFS2X Objective-C API  1.7.13
iOS / macOS / tvOS
InvitationReplyRequest.h
1 //
2 // InvitationReplyRequest.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 
12 #import "BaseRequest.h"
13 #import "Invitation.h"
14 #import "InvitationReply.h"
15 
16 EXTERN NSString * const InvitationReplyRequest_KEY_INVITATION_ID;
17 EXTERN NSString * const InvitationReplyRequest_KEY_INVITATION_REPLY;
18 EXTERN NSString * const InvitationReplyRequest_KEY_INVITATION_PARAMS;
19 
20 /** Sends a reply to an Invitation.
21 
22  The reply can be either an ACCEPT or REFUSE. If the reply doesn't get to the inviter within the expected amount of time the system
23  will handle it as a REFUSE.
24  */
25 @interface InvitationReplyRequest : BaseRequest {
26 @private
27  id <Invitation> _invitation;
28  NSInteger _reply;
29  id <ISFSObject> _params;
30 }
31 
32 @property (nonatomic, strong) id <Invitation> invitation;
33 @property (nonatomic, assign) NSInteger reply;
34 @property (nonatomic, strong) id <ISFSObject> params;
35 
36 -(id)initWithInvitation:(id <Invitation>)invitation invitationReply:(NSInteger)invitationReply params:(id <ISFSObject>)params;
37 
38 /**
39  @param invitation a reference to the received invitation
40  @param invitationReply the reply code
41  @param params optional custom reply parameters
42 
43 
44  @see [ISFSEvents onInvitationReplyError:]
45  @see SFSInvitation
46  @see InvitationReply
47 
48  */
49 +(id)requestWithInvitation:(id <Invitation>)invitation invitationReply:(NSInteger)invitationReply params:(id <ISFSObject>)params;
50 
51 @end
InvitationReplyRequest
Definition: InvitationReplyRequest.h:25