org.eclipse.ecf.presence.im
Class TypingMessage

java.lang.Object
  extended by org.eclipse.ecf.presence.IMMessage
      extended by org.eclipse.ecf.presence.im.TypingMessage
All Implemented Interfaces:
java.io.Serializable, org.eclipse.core.runtime.IAdaptable, IIMMessage, ITypingMessage

public class TypingMessage
extends IMMessage
implements ITypingMessage

Typing Message implementation class

See Also:
Serialized Form

Field Summary
protected  java.lang.String body
           
protected  boolean typing
           
 
Fields inherited from class org.eclipse.ecf.presence.IMMessage
fromID
 
Constructor Summary
TypingMessage(ID fromID)
           
TypingMessage(ID fromID, boolean typing, java.lang.String body)
           
TypingMessage(ID fromID, java.lang.String body)
           
 
Method Summary
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.String getBody()
          Get the contents of the typing
 boolean isTyping()
          Indicates whether remote user is actually typing.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ecf.presence.IMMessage
getFromID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ecf.presence.IIMMessage
getFromID
 

Field Detail

typing

protected boolean typing

body

protected java.lang.String body
Constructor Detail

TypingMessage

public TypingMessage(ID fromID,
                     boolean typing,
                     java.lang.String body)

TypingMessage

public TypingMessage(ID fromID,
                     java.lang.String body)

TypingMessage

public TypingMessage(ID fromID)
Method Detail

getBody

public java.lang.String getBody()
Description copied from interface: ITypingMessage
Get the contents of the typing

Specified by:
getBody in interface ITypingMessage
Returns:
String contents of the typing. May return null.

isTyping

public boolean isTyping()
Description copied from interface: ITypingMessage
Indicates whether remote user is actually typing.

Specified by:
isTyping in interface ITypingMessage
Returns:
true if currently typing, false if currently stopped.

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Overrides:
getAdapter in class IMMessage

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object