public interface RocketChatClient
| Modifier and Type | Method and Description |
|---|---|
Room[] |
getChannels() |
User |
getUser(String userId)
Retrieves a
User from the Rocket.Chat server. |
User[] |
getUsers()
Gets all of the users from a Rocket.Chat server, if you have a ton this will
take some time.
|
void |
send(Room room,
String message)
sends a message to a channel
|
void |
send(String channelName,
String message)
sends a message to a channel
|
User[] getUsers() throws IOException
UsersIOException - is thrown if there was a problem connecting, including if the result
wasn't successfulUser getUser(String userId) throws IOException
User from the Rocket.Chat server.userId - of the user to retrieveUserIOException - is thrown if there was a problem connecting, including if the result
wasn't successful or there is no userRoom[] getChannels() throws IOException
IOException - in case of communication errors with the RocketChat server backendvoid send(Room room, String message) throws sun.security.validator.ValidatorException, IOException
room - to use (aka channel)message - to sendsun.security.validator.ValidatorException - in case of SSL errorsIOException - in case of communication errors with the RocketChat server backendvoid send(String channelName, String message) throws sun.security.validator.ValidatorException, IOException
channelName - to usemessage - to sendsun.security.validator.ValidatorException - in case of SSL errorsIOException - in case of communication errors with the RocketChat server backendCopyright © 2016. All rights reserved.