com.voiceclearly.api.chat
Class Chat

java.lang.Object
  extended by com.voiceclearly.api.chat.Chat

public class Chat
extends java.lang.Object

A chat represents a conversation between two users and includes Messages and a unique thread.


Constructor Summary
Chat(com.voiceclearly.jingle.Chat jingleChat)
          Chat object that wraps a jingle Chat object and typically not used by the end user.
 
Method Summary
 com.voiceclearly.jingle.Chat getJingleChat()
          Returns a jingle Chat object which is session aware and not typically used by client code directly.
 java.lang.String getParticipant()
          Returns the name of the user the chat is with.
 void sendMessage(Message message)
          Sends a message to the other chat participant.
 void sendMessage(java.lang.String text)
          Sends the text as a message to the other chat user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chat

public Chat(com.voiceclearly.jingle.Chat jingleChat)
Chat object that wraps a jingle Chat object and typically not used by the end user.

Parameters:
jingleChat -
Method Detail

getJingleChat

public com.voiceclearly.jingle.Chat getJingleChat()
Returns a jingle Chat object which is session aware and not typically used by client code directly.

Returns:

getParticipant

public java.lang.String getParticipant()
Returns the name of the user the chat is with.

Returns:
the name of the user the chat is occuring with.

sendMessage

public void sendMessage(java.lang.String text)
Sends the text as a message to the other chat user

Parameters:
text - the text to send.

sendMessage

public void sendMessage(Message message)
Sends a message to the other chat participant.

Parameters:
message - the message to send.