public final class Notifications
extends java.lang.Object
| Constructor and Description |
|---|
Notifications(NotificationsType type)
Constructor.
|
Notifications(NotificationsType type,
int duration)
Contructor with duration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(java.lang.String message)
Add single message to messages list.
|
void |
addMessages(java.util.List<java.lang.String> messages)
Add multiple messages to messages list
|
long |
getCreationTime()
Getter for creationTime.
|
java.lang.Long |
getErrorCode()
Getter for errorCode.
|
long |
getExpirationTime()
Getter for expirationTime.
|
java.util.List<java.lang.String> |
getMessages()
Getter for messages.
|
NotificationsType |
getType()
Getter for type.
|
void |
setErrorCode(java.lang.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(java.lang.String message)
message - messagepublic void addMessages(java.util.List<java.lang.String> messages)
messages - messagespublic NotificationsType getType()
public java.util.List<java.lang.String> getMessages()
public long getCreationTime()
public long getExpirationTime()
public java.lang.Long getErrorCode()
public void setErrorCode(java.lang.Long errorCode)
errorCode - the errorCode to setCopyright © 2014. All Rights Reserved.