@Component
public class NotificationResponse
extends java.lang.Object
| Constructor and Description |
|---|
NotificationResponse() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
zipResponse(java.util.List<java.lang.String> messages,
int timeout,
java.lang.String icon,
java.lang.String colour,
java.lang.String file,
boolean success)
Construct a zipResponse for replying to a file-upload and display in a quasar notification.
|
java.lang.String |
zipResponse(java.lang.String message,
int timeout,
java.lang.String icon,
java.lang.String colour,
java.lang.String file,
boolean success)
Construct a zipResponse for replying to a file-upload and display in a quasar notification.
|
public java.lang.String zipResponse(java.util.List<java.lang.String> messages,
int timeout,
java.lang.String icon,
java.lang.String colour,
java.lang.String file,
boolean success)
messages - List A list of messages.timeout - Integer The timeout in ms until the message gets automatically
discarded.icon - String The icon to be displayed in the message.colour - String The colour of the message.file - String The file name, if available.success - Boolean To indicate a successfull event or not.String The message formatted in JSON.public java.lang.String zipResponse(java.lang.String message,
int timeout,
java.lang.String icon,
java.lang.String colour,
java.lang.String file,
boolean success)
message - String The message itself.timeout - Integer The timeout in ms until the message gets automatically
discarded.icon - String The icon to be displayed in the message.colour - String The colour of the message.file - String The file name, if available.success - Boolean To indicate a successfull event or not.String The message formatted in JSON.