Package rocks.xmpp.extensions.rtt
Class InboundRealTimeMessage
- java.lang.Object
-
- rocks.xmpp.extensions.rtt.InboundRealTimeMessage
-
public final class InboundRealTimeMessage extends Object
An inbound real-time message.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRealTimeTextChangeListener(Consumer<RealTimeTextChangeEvent> realTimeTextListener)
Adds a text change listener, which allows to listen for text changes.Jid
getFrom()
Gets the sender of the real-time message.String
getId()
int
getSequence()
Gets the sequence number of this real-time message.String
getText()
Gets the current text.boolean
isComplete()
Indicates whether this real-time message is complete.void
removeRealTimeTextChangeListener(Consumer<RealTimeTextChangeEvent> realTimeTextListener)
Removes a previously added text change listener.String
toString()
-
-
-
Method Detail
-
getText
public final String getText()
Gets the current text.- Returns:
- The text.
-
getFrom
public final Jid getFrom()
Gets the sender of the real-time message.- Returns:
- The sender.
-
addRealTimeTextChangeListener
public final void addRealTimeTextChangeListener(Consumer<RealTimeTextChangeEvent> realTimeTextListener)
Adds a text change listener, which allows to listen for text changes.- Parameters:
realTimeTextListener
- The listener.
-
removeRealTimeTextChangeListener
public final void removeRealTimeTextChangeListener(Consumer<RealTimeTextChangeEvent> realTimeTextListener)
Removes a previously added text change listener.- Parameters:
realTimeTextListener
- The listener.
-
isComplete
public final boolean isComplete()
Indicates whether this real-time message is complete.- Returns:
- True, if the message is complete.
-
getSequence
public final int getSequence()
Gets the sequence number of this real-time message.- Returns:
- The sequence number.
-
getId
public final String getId()
-
-