public class InitializationResult extends DigifiedResult
Constructor and Description |
---|
InitializationResult(String message,
String nextProcess,
Integer overallStatus,
Integer result,
Boolean shouldTerminate,
String token,
String error,
ArrayList<String> errorCode)
Response of the "Init request" of the API
Constructor for InitializationResult
|
Modifier and Type | Method and Description |
---|---|
String |
getToken()
Getter method for
token : 30 character long alphanumeric string representing the user. |
getError, getErrorCode, getMessage, getNextProcess, getOverallStatus, getResult, getShouldTerminate
public InitializationResult(String message, String nextProcess, Integer overallStatus, Integer result, Boolean shouldTerminate, String token, String error, ArrayList<String> errorCode)
message
- "msg" in the API response, represents the recommended action for usernextProcess
- "next" in the API response, represents the next operationoverallStatus
- "overall_status" in the API response,
Enumeration representing overall status of the session:
(FAILED: 0, VERIFIED: 1, IN_PROGRESS: 2, PENDING: 3)result
- "result" in the API response,
indicating the session status: (SUCCESS: 0, HAS_ERRORS: -1, HAS_WARNINGS: 1)shouldTerminate
- "should_terminate" in the API response,
False if there will be a next op-state / try, True otherwisetoken
- "token" in the API response, 30 character long alphanumeric
string representing the user.error
- "Error" in the API response, the error messageerrorCode
- "code" in the API response, the error codepublic String getToken()
token
: 30 character long alphanumeric string representing the user.