| Package | com.electrotank.electroserver4.message |
| Class | public class ValidationResponse |
| Method | Defined by | ||
|---|---|---|---|
|
ValidationResponse(isValid:Boolean, problems:Array)
Creates a new instance of the ValiationResponse class.
| ValidationResponse | ||
|
getIsValid():Boolean
Returns a boolean value specifying if the validation suceeded or failed.
| ValidationResponse | ||
|
getProblems():Array
Retunrs an array of strings.
| ValidationResponse | ||
| ValidationResponse | () | constructor |
public function ValidationResponse(isValid:Boolean, problems:Array)Creates a new instance of the ValiationResponse class. Pass in true/false to specify if the validation succeeded or not, and an array of problems if it failed.
ParametersisValid:Boolean — True or false. Pass in true if validation succeeded.
|
|
problems:Array — If validation failed then pass in an array of issues. In this API we use an array of strings.
|
| getIsValid | () | method |
public function getIsValid():BooleanReturns a boolean value specifying if the validation suceeded or failed. If true, it succeeded.
ReturnsBoolean — True or false.
|
| getProblems | () | method |
public function getProblems():ArrayRetunrs an array of strings.
ReturnsArray — An array of strings.
|