Interface PunchcardDetailsView
- 
- All Superinterfaces:
 LceView,MvpLceView,MvpView
- All Known Implementing Classes:
 PunchcardDetailsActivity,SimplePunchcardDetailsActivity
public interface PunchcardDetailsView extends LceView
The MVP View for List ofPunchcardorPunchcardInstance 
- 
- 
Method Summary
- 
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
- 
showPunchcardDetails
void showPunchcardDetails(java.lang.Object punchcard)
Called by the MVP Presenter after receiving response from aPunchcardAPI.getPunchcard(PunchcardParams, boolean, ListenerModel)orPunchcardAPI.getPunchcardInstance(PunchcardParams, boolean, ListenerModel)- Parameters:
 punchcard- instance ofPunchcardorPunchcardInstance
 
- 
showValidityDetails
void showValidityDetails(java.util.Date expirationDate)
Called by the MVP Presenter after receiving response from aPunchcardAPI.getPunchcard(PunchcardParams, boolean, ListenerModel)orPunchcardAPI.getPunchcardInstance(PunchcardParams, boolean, ListenerModel)Shows the validity of current punchcard
- Parameters:
 expirationDate- date used to display as the expiration date
 
- 
showDaysLeft
void showDaysLeft(int daysLeft)
Called by the MVP Presenter after receiving response from aPunchcardAPI.getPunchcard(PunchcardParams, boolean, ListenerModel)orPunchcardAPI.getPunchcardInstance(PunchcardParams, boolean, ListenerModel)Shows days left before the punchcard is expired
- Parameters:
 daysLeft- date used to display as the expiration date
 
- 
showPunches
void showPunches(java.util.List<Punch> punchList)
Called by the MVP Presenter after receiving response from aPunchcardAPI.getPunchcard(PunchcardParams, boolean, ListenerModel)orPunchcardAPI.getPunchcardInstance(PunchcardParams, boolean, ListenerModel)Shows the list of punch the current punchcard has
- Parameters:
 punchList- list ofPunchto display
 
- 
showPoints
void showPoints(java.lang.String rewardPoints)
Called by the MVP Presenter after receiving response from aPunchcardAPI.getPunchcard(PunchcardParams, boolean, ListenerModel)orPunchcardAPI.getPunchcardInstance(PunchcardParams, boolean, ListenerModel)Shows the reward points
- Parameters:
 rewardPoints- reward points to display in punchcard details
 
 - 
 
 -