|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsfs2x.client.requests.MessageRecipientMode
public class MessageRecipientMode
This class is used to specify the recipient mode for Moderator Messages and Administrator Message. There are 4 recipient modes:
ModeratorMessageRequest,
AdminMessageRequest| Field Summary | |
|---|---|
static int |
TO_GROUP
The moderator/administrator message will be sent to all the clients who subscribed a specific Room Group. |
static int |
TO_ROOM
The moderator/administrator message will be sent to all the users in a specific Room. |
static int |
TO_USER
The moderator/administrator message will be sent to a specific user. |
static int |
TO_ZONE
The moderator/administrator message will be sent to all the users in the Zone. |
| Constructor Summary | |
|---|---|
MessageRecipientMode(int mode,
java.lang.Object target)
|
|
| Method Summary | |
|---|---|
int |
getMode()
Returns the selected recipient mode. |
java.lang.Object |
getTarget()
Returns the moderator/administrator message target, according to the selected recipient mode. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TO_USER
User,
Constant Field Valuespublic static final int TO_ROOM
Room,
Constant Field Valuespublic static final int TO_GROUP
Room.getGroupId(),
Constant Field Valuespublic static final int TO_ZONE
null can be passed as target parameter, in fact it will be ignored.
Room.getGroupId(),
Constant Field Values| Constructor Detail |
|---|
public MessageRecipientMode(int mode,
java.lang.Object target)
mode - the recipient modetarget - the target, depending on the specified recipient mode, as explained in the Class overview| Method Detail |
|---|
public int getMode()
public java.lang.Object getTarget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||