Class GetPostmanMessagesCommand

java.lang.Object
marauroa.server.db.command.AbstractDBCommand
games.stendhal.server.core.engine.dbcommand.GetPostmanMessagesCommand
All Implemented Interfaces:
DBCommand

public class GetPostmanMessagesCommand extends AbstractDBCommand
Get postman messages for a player
Author:
kymara
  • Constructor Details

    • GetPostmanMessagesCommand

      public GetPostmanMessagesCommand(Player player)
      creates a new GetPostmanMessagesCommand
      Parameters:
      player - the player the check originated from
  • Method Details

    • execute

      public void execute(DBTransaction transaction) throws SQLException
      Description copied from class: AbstractDBCommand
      processes the database request.
      Specified by:
      execute in interface DBCommand
      Specified by:
      execute in class AbstractDBCommand
      Parameters:
      transaction - DBTransaction
      Throws:
      SQLException - in case of an database error
    • getMessages

      public List<ChatMessage> getMessages()
      gets the list of messages
      Returns:
      messages
    • getPlayer

      public Player getPlayer()
      To access the player sending the query
      Returns:
      player
    • toString

      public String toString()
      returns a string suitable for debug output of this DBCommand.
      Overrides:
      toString in class Object
      Returns:
      debug string