Class Group

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

public class Group extends Object implements Command
Command to manage groups: list/create/delete/show. To manage members: join/ask/invite/accept/allow/leave/kick. Users can join/ask/accept/leave, group owners can invite/allow/kick.
Author:
joe
  • Constructor Details

    • Group

      public Group()
    • Group

      public Group(String action, String name, long clientId, String text)
  • Method Details

    • execute

      public ClientResponse execute(WorldManager worldManager, Client client) throws Exception
      Specified by:
      execute in interface Command
      Throws:
      Exception
    • getAction

      public String getAction()
      list/create/delete/show/join/ask/invite/accept/allow/leave/kick/write
    • getName

      public String getName()
      used for create/delete commands
    • getClientId

      public long getClientId()
      used for add/remove/invite/kick commands
    • getText

      public String getText()
      used for write action
    • setAction

      public void setAction(String action)
      list/create/delete/show/join/ask/invite/accept/allow/leave/kick/write
    • setName

      public void setName(String name)
      used for create/delete commands
    • setClientId

      public void setClientId(long clientId)
      used for add/remove/invite/kick commands
    • setText

      public void setText(String text)
      used for write action
    • 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