public abstract class DigifiedResult
extends java.lang.Object
Constructor and Description |
---|
DigifiedResult(String message,
String nextProcess,
Integer overallStatus,
Integer result,
Boolean shouldTerminate,
String error,
ArrayList<String> errorCode)
Constructor for the DigifiedResult
|
Modifier and Type | Method and Description |
---|---|
String |
getError()
Getter method for
error : the error message |
ArrayList<String> |
getErrorCode()
Getter method for
errorCode : the error code |
String |
getMessage()
Getter method for
message : represents the recommended action for user |
String |
getNextProcess()
Getter method for
nextProcess : represents the next operation |
Integer |
getOverallStatus()
Getter method for
overallStatus : Enumeration representing overall status of the session:
(FAILED: 0, VERIFIED: 1, IN_PROGRESS: 2, PENDING: 3) |
Integer |
getResult()
Getter method for
result : indicating the session status: (SUCCESS: 0, HAS_ERRORS: -1, HAS_WARNINGS: 1) |
Boolean |
getShouldTerminate()
Getter method for
shouldTerminate : False if there will be a next op-state / try, True otherwise. |
public DigifiedResult(String message, String nextProcess, Integer overallStatus, Integer result, Boolean shouldTerminate, 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 otherwiseerror
- "Error" in the API response, the error messageerrorCode
- "code" in the API response, the error codepublic String getMessage()
message
: represents the recommended action for userpublic String getNextProcess()
nextProcess
: represents the next operationpublic Integer getOverallStatus()
overallStatus
: Enumeration representing overall status of the session:
(FAILED: 0, VERIFIED: 1, IN_PROGRESS: 2, PENDING: 3)public Integer getResult()
result
: indicating the session status: (SUCCESS: 0, HAS_ERRORS: -1, HAS_WARNINGS: 1)public Boolean getShouldTerminate()
shouldTerminate
: False if there will be a next op-state / try, True otherwise.public String getError()
error
: the error messagepublic ArrayList<String> getErrorCode()
errorCode
: the error code