Package org.vrspace.server.dto
Class Echo
- java.lang.Object
-
- org.vrspace.server.dto.Echo
-
- All Implemented Interfaces:
Command
public class Echo extends Object implements Command
Echoes back the command for e.g. client development purposes. Examples {"command":{"Echo":{"command":{"Remove":{"objects":[{"VRObject":1},{"VRObject":2},{"Client":1}]}}}}} {"command":{"Echo":{"event":{"object":{"VRObject":1},"changes":{"field1":"value2","field2":5,"field3":{"id":2},"field4":{"one":1,"two":"two"}}}}}} {"command":{"Echo":{"event":{"object":{"Client":0},"changes":{"name":"NewClientName"}}}}}
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
ClientResponse
execute(WorldManager world, Client client)
Command
getCommand()
VREvent
getEvent()
int
hashCode()
void
setCommand(Command command)
void
setEvent(VREvent event)
String
toString()
-
-
-
Method Detail
-
execute
public ClientResponse execute(WorldManager world, Client client)
-
getCommand
public Command getCommand()
-
getEvent
public VREvent getEvent()
-
setCommand
public void setCommand(Command command)
-
setEvent
public void setEvent(VREvent event)
-
canEqual
protected boolean canEqual(Object other)
-
-