public class JSONMessage extends JSONObject
| Constructor and Description |
|---|
JSONMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse,
java.lang.String moreInformation)
Constructs a message.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdminResponse()
Returns the suggested administrator response.
|
java.lang.String |
getExplanation()
Returns a more detailed explanation of the message.
|
java.lang.String |
getMoreInformation()
Returns additional detailed information, typically a list of items for which the message applies.
|
int |
getNumber()
Returns the message number.
|
java.lang.String |
getText()
Returns the brief text of the message.
|
java.lang.String |
getUserResponse()
Returns the suggested user response.
|
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toStringclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic JSONMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse,
java.lang.String moreInformation)
number - The message numbertext - The message textexplanation - A more detailed explanationuserResponse - A user responseadminResponse - An administrator response or null.moreInformation - More information, typically with a list of items for which the message applies.public int getNumber()
public java.lang.String getText()
public java.lang.String getExplanation()
public java.lang.String getUserResponse()
public java.lang.String getAdminResponse()
public java.lang.String getMoreInformation()