public class EchoMod extends Mod implements ContextMod, ObjectCompletionWatcher
| Constructor and Description |
|---|
EchoMod()
JSON-driven constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
echo(User from,
String text)
Message handler for the 'echo' message.
|
JSONLiteral |
encode(EncodeControl control)
Encode this mod for transmission or persistence.
|
void |
objectIsComplete()
Take notice that the associated context is complete.
|
void |
status(User from)
Message handler for the 'status' message.
|
attachTo, clone, context, ensureHolding, ensureInContext, ensureReachable, ensureSameContext, ensureSameUser, holder, isEphemeral, markAsChanged, markAsEphemeral, object@JSONMethod public EchoMod()
public JSONLiteral encode(EncodeControl control)
@JSONMethod(value="text") public void echo(User from, String text) throws MessageHandlerException
MessageHandlerException@JSONMethod public void status(User from) throws MessageHandlerException
MessageHandlerExceptionpublic void objectIsComplete()
objectIsComplete in interface ObjectCompletionWatcherCopyright © 2017. All rights reserved.