Class InputMessage
java.lang.Object
de.hamstersimulator.objectsfirst.server.input.InputMessage
- All Implemented Interfaces:
Serializable
Helper class for json serialization, represents a input request including the message
- See Also:
- Serialized Form
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputMessage
GetConfirmAlertMessage(String message, int inputId, String type, String stacktrace)
Creates a new confirm alert input messageint
Getter for the inputIdstatic InputMessage
GetReadIntMessage(String message, int inputId)
Creates a new read int input messagestatic InputMessage
GetReadStringMessage(String message, int inputId)
Creates a new read string input message
-
Method Details
-
GetReadStringMessage
Creates a new read string input message- Parameters:
message
- the message to displayinputId
- the id of the request- Returns:
- the input message, != null
-
GetReadIntMessage
Creates a new read int input message- Parameters:
message
- the message to display, must be != nullinputId
- 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 != nullinputId
- the id of the requesttype
- the exception type, must be != nullstacktrace
- 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
-