T - Type of the response objectpublic class PowerAuthApiResponse<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
PowerAuthApiResponse.Encryption
Response encryption type
|
class |
PowerAuthApiResponse.Status
Response status string
|
| Constructor and Description |
|---|
PowerAuthApiResponse()
Default constructor
|
PowerAuthApiResponse(String status,
String encryption,
T responseObject)
Constructor with response status, encryption type and response object
|
PowerAuthApiResponse(String status,
T responseObject)
Constructor with response status and response object
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEncryption()
Get encryption type.
|
T |
getResponseObject()
Get response object
|
String |
getStatus()
Get response status.
|
void |
setEncryption(String encryption)
Set encryption type.
|
void |
setResponseObject(T responseObject)
Set response object
|
void |
setStatus(String status)
Set response status
|
public PowerAuthApiResponse()
public PowerAuthApiResponse(String status, T responseObject)
status - Response status, use static constant from PowerAuthApiResponse.Status class.responseObject - Response object.public PowerAuthApiResponse(String status, String encryption, T responseObject)
status - Response status, use static constant from PowerAuthApiResponse.Status class.encryption - Response encryption type, use static constant from PowerAuthApiResponse.Encryption class.responseObject - Response object.public String getStatus()
public void setStatus(String status)
status - Response statuspublic String getEncryption()
public void setEncryption(String encryption)
encryption - Encryption type.public T getResponseObject()
public void setResponseObject(T responseObject)
responseObject - Response objectCopyright © 2016–2017 Lime - HighTech Solutions Inc.. All rights reserved.