public final class Notifications extends Object
| Constructor and Description |
|---|
Notifications(NotificationsType type)
Constructor.
|
Notifications(NotificationsType type,
int duration)
Contructor with duration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String message)
Add single message to messages list.
|
void |
addMessages(List<String> messages)
Add multiple messages to messages list.
|
long |
getCreationTime()
Getter for creationTime.
|
Long |
getErrorCode()
Getter for errorCode.
|
long |
getExpirationTime()
Getter for expirationTime.
|
List<String> |
getMessages()
Getter for messages.
|
NotificationsType |
getType()
Getter for type.
|
void |
setErrorCode(Long errorCode)
Setter for errorCode.
|
public Notifications(NotificationsType type)
type - notifications typepublic Notifications(NotificationsType type, int duration)
type - notifications typeduration - duration, in millisecondpublic void addMessage(String message)
message - messagepublic void addMessages(List<String> messages)
messages - messagespublic NotificationsType getType()
public long getCreationTime()
public long getExpirationTime()
public Long getErrorCode()
public void setErrorCode(Long errorCode)
errorCode - the errorCode to setCopyright © 2021. All rights reserved.