|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChat
A two-person chat. Instances are created via
IChatManager.createChat(ID, org.eclipse.ecf.presence.IIMMessageListener)
.
Method Summary | |
---|---|
IChatRoomContainer |
createChatRoomContainer()
Create a new IChatRoomContainer instance from this chat. |
void |
dispose()
Dispose this chat, making it incapable of receiving any more messages or being the source of any more messages. |
IPresenceContainerAdapter |
getPresenceContainerAdapter()
Get presence container adapter for this chat instance. |
ID |
getReceiverID()
Get the receiver for this chat. |
ID |
getThreadID()
Get the thread ID for this chat. |
void |
sendChatMessage(IChatMessage.Type type,
java.lang.String subject,
java.lang.String messageBody,
java.util.Map properties)
Send chat message to receiver. |
void |
sendChatMessage(java.lang.String messageBody)
Send chat message to receiver. |
void |
sendTypingMessage(boolean isTyping,
java.lang.String body)
Send typing message to a remote receiver. |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Method Detail |
---|
ID getReceiverID()
null
.ID getThreadID()
null
.void sendChatMessage(IChatMessage.Type type, java.lang.String subject, java.lang.String messageBody, java.util.Map properties) throws ECFException
type
- the IChatMessage.Type of the message. May not be
null
.subject
- the subject of the message. May be null
.messageBody
- the body of the message to send. May be null
.properties
- any properties to be associated with message. May be
null
.
ECFException
- thrown if currently disconnected or some transport errorvoid sendChatMessage(java.lang.String messageBody) throws ECFException
messageBody
- the body of the message to send. May be null
.
ECFException
- thrown if disconnected or some transport error.void sendTypingMessage(boolean isTyping, java.lang.String body) throws ECFException
isTyping
- true if user is typing, false if they've stopped typing.body
- the content of what has been/is being typed. May be
null
.
ECFException
- thrown if disconnected or some other communications error.IChatRoomContainer createChatRoomContainer() throws ContainerCreateException
null
.
If supported by the provider, this allows moving from a two-way chat represented by this IChat instance to an n-way chat room container. The initial set of participants will be the two participants in this two way chat, and the
IContainer.getConnectedID()
will be non-null, and
equal to getThreadID()
.
If this method is called succesfully (no exception and non-
null
instance returned) then the other participant in this IChat (i.e.
identified by the getReceiverID()
will be notified
asynchronously via the delivery of an IChatRoomCreationEvent
to
the IIMMessageListener
for the remote IChat
instance.
null
if underlying provider does not support this functionality.
ContainerCreateException
- if chat room container cannot be made (e.g. due to
disconnection or other failure).IPresenceContainerAdapter getPresenceContainerAdapter()
null
.void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |