SFS2X Objective-C API  1.7.13
iOS / macOS / tvOS
AdminMessageRequest.h
1 //
2 // AdminMessageRequest.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 "GenericMessageRequest.h"
12 
14 
15 /** Send a Admin Message to a specific User or groups of Users
16 
17  The sender must have the admin privileges to be able to send these kinds of messages.
18  The recipient parameter can be used to specify if the message is sent to a User, a Room, the Room Group or the whole Zone.
19 
20  @see MessageRecipientMode
21  */
22 
23 @interface AdminMessageRequest : GenericMessageRequest {
24 
25 }
26 
27 
28 /** Initializes the request instance.
29 
30  @param message (NSString *) the admin message
31  @param recipientMode (MessageRecipientMode *) the recipient mode (message can be sent to single User, a Room, the whole Room Group or the Zone)
32  @param params (id <ISFSObject>) custom extra parameters (optional)
33 
34  @see MessageRecipientMode
35  @see ModeratorMessageRequest
36  */
37 -(id)initWithMessage:(NSString *)message recipientMode:(MessageRecipientMode *)recipientMode params:(id <ISFSObject>)params;
38 
39 /** Initializes and returns the request
40 
41  @param message (NSString *) the admin message
42  @param recipientMode (MessageRecipientMode *) the recipient mode (message can be sent to single User, a Room, the whole Room Group or the Zone)
43  @param params (id <ISFSObject>) custom extra parameters (optional)
44 
45  @see MessageRecipientMode
46  @see ModeratorMessageRequest
47  */
48 +(id)requestWithMessage:(NSString *)message recipientMode:(MessageRecipientMode *)recipientMode params:(id <ISFSObject>)params;
49 
50 /** Initializes and returns the request
51 
52  @param message (NSString *) the admin message
53  @param recipientMode (MessageRecipientMode *) the recipient mode (message can be sent to single User, a Room, the whole Room Group or the Zone)
54 
55  @see MessageRecipientMode
56  @see ModeratorMessageRequest
57  */
58 +(id)requestWithMessage:(NSString *)message recipientMode:(MessageRecipientMode *)recipientMode;
59 
60 @end
AdminMessageRequest
Definition: AdminMessageRequest.h:23
MessageRecipientMode
Definition: MessageRecipientMode.h:33