public class GateController extends Mod implements ContextMod
| Constructor and Description |
|---|
GateController()
JSON-driven constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JSONLiteral |
encode(EncodeControl control)
Encode this mod for transmission or persistence.
|
void |
gate(User from,
boolean open,
OptString optReason)
Message handler for the 'gate' message.
|
attachTo, clone, context, ensureHolding, ensureInContext, ensureReachable, ensureSameContext, ensureSameUser, holder, isEphemeral, markAsChanged, markAsEphemeral, object@JSONMethod public GateController()
public JSONLiteral encode(EncodeControl control)
@JSONMethod(value={"open","reason"}) public void gate(User from, boolean open, OptString optReason) throws MessageHandlerException
MessageHandlerExceptionCopyright © 2017. All rights reserved.