Skip to main content

BIDGenericResponse

public class BIDGenericResponse extends Object

↳ package com.onekosmos.blockid.sdk.datamodel


Model class to represent the generic response object.

Constructor​

public <T> BIDGenericResponse(boolean status, Object object, ErrorManager.ErrorResponse errorResponse)

  • Creates an object of BIDGenericResponse.
Parameter
statusboolean: Indicates if the SDK is able to look for desired object.
objectObject: A generic object for which the SDK performs the check and returns the value.
errorResponseErrorManager.ErrorResponse: In case of error, an object of ErrorManager.ErrorResponse is returned.

Method Summary​

TypeNameDescription
<T> TgetDataObject()A generic object for which the SDK performs the check and returns the value.
ErrorManager.ErrorResponsegetErrorResponse()Returns an error (an object of ErrorManager.ErrorResponse) message.
booleangetStatus()Indicates if the SDK is able to look for desired object.

Method Detail​

getDataObject​

public <T> T getDataObject()

  • A generic object for which the SDK performs the check and returns the value.

getErrorResponse​

public ErrorManager.ErrorResponse getErrorResponse()


getStatus​

public boolean getStatus()

  • Indicates if the SDK is able to look for desired object.