Package com.wallee.android.till.sdk
Class ResponseHandler
- java.lang.Object
-
- android.os.Handler
-
- com.wallee.android.till.sdk.ResponseHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class android.os.Handler
Handler.Callback
-
-
Constructor Summary
Constructors Constructor Description ResponseHandler()
-
Method Summary
-
Methods inherited from class android.os.Handler
createAsync, createAsync, dispatchMessage, dump, getLooper, getMessageName, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
-
-
-
-
Method Detail
-
handleMessage
public final void handleMessage(@NonNull Message msg)
Generic message handler that dispatches to the specialized methods below.- Overrides:
handleMessage
in classHandler
- Parameters:
msg
- - API message.
-
checkApiServiceCompatibilityReply
public void checkApiServiceCompatibilityReply(Boolean isCompatible, String apiServiceVersion)
The response from anApiClient.checkApiServiceCompatibility()
call.- Parameters:
isCompatible
- is the current SDK is compatible with the service API, or not.apiServiceVersion
- the SDK version number from the service API.
-
serviceApiSdkVersionNotSupportedReply
public void serviceApiSdkVersionNotSupportedReply(String message)
The response from the API in case if the current SDK version is not supported by the API service.- Parameters:
message
- the detailed message with an explanation.
-
authorizeTransactionReply
public void authorizeTransactionReply(TransactionResponse response)
The response from anApiClient.authorizeTransaction(Transaction)
call.- Parameters:
response
- the transaction as it was processed.
-
completeTransactionReply
public void completeTransactionReply(TransactionCompletionResponse response)
The response from anApiClient.completeTransaction(TransactionCompletion)
call.- Parameters:
response
- the transaction as it was processed.
-
voidTransactionReply
public void voidTransactionReply(TransactionVoidResponse response)
The response from anApiClient.voidTransaction(TransactionVoid)
call.- Parameters:
response
- the void as it was processed.
-
cancelLastTransactionOperationReply
public void cancelLastTransactionOperationReply(CancelationResult result)
The result from anApiClient.cancelLastTransactionOperation()
call.- Parameters:
result
- the cancelation as it was processed.
-
executeSubmissionReply
public void executeSubmissionReply(SubmissionResult result)
The result from anApiClient.executeSubmission()
call.- Parameters:
result
- the submission as it was processed.
-
executeTransmissionReply
public void executeTransmissionReply(TransmissionResult result)
The result from anApiClient.executeTransmission()
call.- Parameters:
result
- the transmission as it was processed.
-
executeFinalBalanceReply
public void executeFinalBalanceReply(FinalBalanceResult result)
The result from anApiClient.executeFinalBalance()
call.- Parameters:
result
- the final balance as it was processed.
-
executeGeneratePanTokenResponse
public void executeGeneratePanTokenResponse(GeneratePanTokenResponse result)
The result from anApiClient.executeGeneratePanToken()
call.- Parameters:
result
- the panToken as it was processed.
-
executeGetConfigInfoResponse
public void executeGetConfigInfoResponse(GetPinpadInformationResponse result)
The result from anApiClient.getPinPadInformation()
call.- Parameters:
result
- the pinpadinformation as it was processed.
-
executeGetConfigDataResponse
public void executeGetConfigDataResponse(GetConfigDataResponse result)
The result from anApiClient.getConfigData()
call.- Parameters:
result
- the configdata as it was processed.
-
executeConfigurationReply
public void executeConfigurationReply(ConfigurationResult result)
The result from anApiClient.executeConfiguration()
()} call.- Parameters:
result
- the configuration as it was processed.
-
executeInitialisationReply
public void executeInitialisationReply(InitialisationResult result)
The result from anApiClient.executeInitialisation()
()} ()} call.- Parameters:
result
- the initialisation as it was processed.
-
-