SFS2X Objective-C API  1.7.13
iOS / macOS / tvOS
PrivateMessageRequest.h
1 //
2 // PrivateMessageRequest.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 "GenericMessageRequest.h"
13 
14 /** Send a chat Private Message to another User
15 
16  Private Messages can be exchanged between Users in the same Rooms or in different Rooms.
17  They can also be sent between Users that are not joined to any Rooms at all.
18  */
19 @interface PrivateMessageRequest : GenericMessageRequest {
20 
21 }
22 
23 -(id)initWithMessage:(NSString *)message recipientId:(NSInteger)recipientId params:(id <ISFSObject>)params;
24 /**
25  @param recipientId the id of the recipient User
26  @param message the private chat message
27  @param params custom extra parameters (optional)
28 
29  @see [ISFSEvents onPrivateMessage:]
30  @see PublicMessageRequest
31 
32  */
33 +(id)requestWithMessage:(NSString *)message recipientId:(NSInteger)recipientId params:(id <ISFSObject>)params;
34 +(id)requestWithMessage:(NSString *)message recipientId:(NSInteger)recipientId;
35 
36 @end
PrivateMessageRequest
Definition: PrivateMessageRequest.h:19