java.lang.Object
de.hamstersimulator.objectsfirst.server.input.InputMessage
All Implemented Interfaces:
Serializable

public class InputMessage extends Object implements Serializable
Helper class for json serialization, represents a input request including the message
See Also:
Serialized Form
  • Method Details

    • GetReadStringMessage

      public static InputMessage GetReadStringMessage(String message, int inputId)
      Creates a new read string input message
      Parameters:
      message - the message to display
      inputId - the id of the request
      Returns:
      the input message, != null
    • GetReadIntMessage

      public static InputMessage GetReadIntMessage(String message, int inputId)
      Creates a new read int input message
      Parameters:
      message - the message to display, must be != null
      inputId - the id of the request
      Returns:
      the input message, != null
    • GetConfirmAlertMessage

      public static InputMessage GetConfirmAlertMessage(String message, int inputId, String type, String stacktrace)
      Creates a new confirm alert input message
      Parameters:
      message - the message to display, must be != null
      inputId - the id of the request
      type - the exception type, must be != null
      stacktrace - the stacktrace of the exception, must be != null
      Returns:
      the message
    • getInputId

      public int getInputId()
      Getter for the inputId
      Returns:
      the id of the input