Class BaseResponse
java.lang.Object
com.clover.remote.client.messages.BaseResponse
- Direct Known Subclasses:
CapturePreAuthResponse,CheckBalanceResponse,CloseoutResponse,CustomActivityResponse,CustomerProvidedDataEvent,DisplayReceiptOptionsResponse,InvalidStateTransitionResponse,ManualRefundResponse,PaymentResponse,PrintJobStatusResponse,ReadCardDataResponse,RefundPaymentResponse,ResetDeviceResponse,RetrieveDeviceStatusResponse,RetrievePaymentResponse,RetrievePendingPaymentsResponse,RetrievePrintersResponse,SignatureResponse,TipAdjustAuthResponse,TipResponse,VaultCardResponse
The base for responses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the field valueGet the field valueGet the field valuefinal booleanGet the field valuevoidsetMessage(String message) Set the field valuevoidSet the field valuevoidsetResult(ResultCode result) Set the field valuevoidsetSuccess(boolean success) Set the field value
-
Constructor Details
-
BaseResponse
public BaseResponse() -
BaseResponse
Constructor- Parameters:
success- If true then the requested operation succeededresult- The result of the requested operation
-
-
Method Details
-
setSuccess
public void setSuccess(boolean success) Set the field value- Parameters:
success- If true then the requested operation succeeded
-
isSuccess
public final boolean isSuccess()Get the field value- Returns:
- If true then the requested operation succeeded
-
setResult
Set the field value- Parameters:
result- The result of the requested operation
-
getResult
Get the field value- Returns:
- The result of the requested operation
-
setReason
Set the field value- Parameters:
reason- Optional information about result.
-
getReason
Get the field value- Returns:
- Optional information about result.
-
setMessage
Set the field value- Parameters:
message- Detailed information about result.
-
getMessage
Get the field value- Returns:
- Detailed information about result.
-