Class Enter

java.lang.Object
org.vrspace.server.dto.Enter
All Implemented Interfaces:
Command

public class Enter extends Object implements Command
Enter a world. By default this command is asynchronous, and sends Welcome message back over websocket. When async is false, it responds with ClientResponse containing Welcome message.
Author:
joe
  • Constructor Details

    • Enter

      public Enter()
    • Enter

      public Enter(@NonNull @NonNull String world)
    • Enter

      public Enter(@NonNull @NonNull String world, String token, boolean async)
  • Method Details

    • execute

      public ClientResponse execute(WorldManager manager, Client client) throws ClassNotFoundException
      Specified by:
      execute in interface Command
      Throws:
      ClassNotFoundException
    • getWorld

      @NonNull public @NonNull String getWorld()
      Name of the world to enter
    • getToken

      public String getToken()
      Optional token required to enter private worlds
    • isAsync

      public boolean isAsync()
      Asynchronous command, defaults to true.
    • setWorld

      public void setWorld(@NonNull @NonNull String world)
      Name of the world to enter
    • setToken

      public void setToken(String token)
      Optional token required to enter private worlds
    • setAsync

      public void setAsync(boolean async)
      Asynchronous command, defaults to true.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object