public final class NotificationResult extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
indicatesSuccess
true if and only if the notification was successful.
|
String |
message
the error message in case the notification was not succesful or
null, otherwise.
|
| Modifier and Type | Method and Description |
|---|---|
static NotificationResult |
newFailure(String message)
returns a new NotificationResult instance indicating a failed
notification.
|
static NotificationResult |
newSuccess()
returns a new NotificationResult instance indicating a successful
notification.
|
public final boolean indicatesSuccess
public final String message
public static NotificationResult newSuccess()
public static NotificationResult newFailure(String message)
message - the message indicating why the notifiation failedCopyright © 2004-2016. All Rights Reserved.