public interface MessageService
getService(MessageService.class)
to request an instance of this service.ServicesBroker.getService(Class)
Modifier and Type | Method and Description |
---|---|
void |
sendMessage(String message)
Sends the given message to all users logged in on the server.
|
void |
sendMessage(String message,
Group recipientGroup)
Sends the given message to the users contained in the given usergroup.
|
void |
sendMessage(String message,
List<User> recipients)
Sends the given message to the users specified by the given recipients list.
|
void sendMessage(@NotNull String message)
message
- the message to be sendvoid sendMessage(@NotNull String message, @NotNull List<User> recipients)
message
- the message to be sendrecipients
- the users which will receive the messagevoid sendMessage(@NotNull String message, @NotNull Group recipientGroup)
message
- the message to be sendrecipientGroup
- the group which members should receive the messageCopyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408