public class SecurityCodeConfirmationResult extends Object
Constructor and Description |
---|
SecurityCodeConfirmationResult(boolean success,
LocalizedMessage message)
Create a new result
|
Modifier and Type | Method and Description |
---|---|
LocalizedMessage |
getErrorMessage() |
LocalizedMessage |
getSuccessMessage() |
LocalizedMessage |
getWarningMessage() |
boolean |
isSuccess() |
void |
setErrorMessage(LocalizedMessage errorMessage)
Set a message that describes what went wrong during confirmation of the code
|
void |
setSuccessMessage(LocalizedMessage successMessage)
Set a message to give some feedback about the successful code confirmation
|
void |
setWarningMessage(LocalizedMessage warningMessage)
Set a message with warning.
|
public SecurityCodeConfirmationResult(boolean success, LocalizedMessage message)
success
- whether the confirmation was successfulmessage
- if success is true the success message will be set to this value otherwise it will
be stored as the error messagepublic LocalizedMessage getErrorMessage()
isSuccess()
returns false.public LocalizedMessage getSuccessMessage()
isSuccess()
returns true and no
warning message exists.public LocalizedMessage getWarningMessage()
isSuccess()
returns true.public boolean isSuccess()
public void setErrorMessage(LocalizedMessage errorMessage)
errorMessage
- the error messagepublic void setSuccessMessage(LocalizedMessage successMessage)
successMessage
- the success messagepublic void setWarningMessage(LocalizedMessage warningMessage)
warningMessage
- the warning messageCopyright © 2019 Communote team. All rights reserved.