Last active
October 3, 2017 00:38
-
-
Save jianxiansiqi47/b3549743a960ace755a0b2e3584a893e to your computer and use it in GitHub Desktop.
DealPresenterV2 - TP article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DealPresenter { | |
@VisibleForTesting Deal deal; | |
@Inject DealUtil dealUtil; | |
@Inject DealApiClient dealApiClient; | |
@Inject DealViewStateModel dealViewStateModel; | |
@Inject WishlistManager wishlistManager; | |
// We do not need the constructor anymore | |
... | |
public void onWishlistSelected() { | |
if (dealUtil.isWishlistEnabled(deal)) { | |
wishlistManager.addDealToWishlist(deal.dealId); | |
} | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment