Interface CheckOutView
-
- All Superinterfaces:
LceView
,MvpLceView
,MvpView
- All Known Implementing Classes:
CheckOutActivity
public interface CheckOutView extends LceView
LceView
class ofCheckOutPresenter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
displayRewards(java.util.List<TransactionCoupon> coupons)
Displays the list ofTransactionCoupon
void
displayTransaction(TransactionResult result)
Displays the transaction detailsvoid
enableButtonPayment(boolean state)
Enable/Disables the payment buttonvoid
showTransactionFailedDialog(java.lang.String error)
Shows the dialog for a failed transactionvoid
showTransactionSuccessDialog(TransactionResult result)
Shows the dialog for a successful transaction-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.LceView
onLoadFailed, onLoadSuccess, setErrorViewClickListener
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.MvpLceView
showContent, showError, showLoading
-
-
-
-
Method Detail
-
showTransactionSuccessDialog
void showTransactionSuccessDialog(TransactionResult result)
Shows the dialog for a successful transaction- Parameters:
result
- instance ofTransactionResult
that contains content of the message
-
showTransactionFailedDialog
void showTransactionFailedDialog(java.lang.String error)
Shows the dialog for a failed transaction- Parameters:
error
- content of the error message
-
displayTransaction
void displayTransaction(TransactionResult result)
Displays the transaction details- Parameters:
result
- instance ofTransactionResult
used to populate the views
-
displayRewards
void displayRewards(java.util.List<TransactionCoupon> coupons)
Displays the list ofTransactionCoupon
- Parameters:
coupons
- list ofTransactionCoupon
to display
-
enableButtonPayment
void enableButtonPayment(boolean state)
Enable/Disables the payment button- Parameters:
state
- true to enable the button, else false
-
-