public interface IChatService
Modifier and Type | Field and Description |
---|---|
static String |
STATE_AWAY
The user is currently away from the chat.
|
static String |
STATE_DEAD
The state for a disconnected user.
|
static String |
STATE_IDLE
The default user state.
|
static String |
STATE_TYPING
The user typing a message.
|
Modifier and Type | Method and Description |
---|---|
IFuture<byte[]> |
getImage()
Get the user image.
|
IFuture<String> |
getNickName()
Get the user name.
|
IFuture<String> |
getStatus()
Get the current status.
|
IFuture<Void> |
message(String nick,
String text,
boolean privatemessage)
Post a message
|
ITerminableIntermediateFuture<Long> |
sendFile(String nick,
String filename,
long size,
String id,
IInputConnection con)
Send a file.
|
ITerminableFuture<IOutputConnection> |
startUpload(String nick,
String filename,
long size,
String id)
Send a file.
|
IFuture<Void> |
status(String nick,
String status,
byte[] image)
Post a status or nick name, or image change.
|
static final String STATE_IDLE
static final String STATE_TYPING
static final String STATE_AWAY
static final String STATE_DEAD
IFuture<byte[]> getImage()
IFuture<Void> message(String nick, String text, boolean privatemessage)
nick
- The sender's nick name.text
- The text message.IFuture<Void> status(String nick, String status, byte[] image)
nick
- The (possibly changed) nick name.status
- The new status or null for no change.image
- The new image or null for no change.ITerminableIntermediateFuture<Long> sendFile(String nick, String filename, long size, String id, IInputConnection con)
nick
- The sender's nick name.filename
- The filename.size
- The size of the file.id
- An optional id to identify the transfer (e.g. for resume after error).con
- The connection.ITerminableFuture<IOutputConnection> startUpload(String nick, String filename, long size, String id)
nick
- The sender's nick name.filename
- The filename.size
- The size of the file.id
- An optional id to identify the transfer (e.g. for resume after error).Copyright © 2013. All Rights Reserved.