Class AlertChallengePresenter<V extends AlertChallengeView>
- java.lang.Object
-
- com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter<V>
-
- com.cheetahdigital.challenges.ui.alert.AlertChallengePresenter<V>
-
- Type Parameters:
V- theMvpViewclass
- All Implemented Interfaces:
com.cheetahdigital.uikit.architecture.mvp.MvpPresenter<V>
public class AlertChallengePresenter<V extends AlertChallengeView> extends com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter<V>TheMvpPresenterclass forAlertChallengeFragment. Note that the fragment has no UI and this class is for the API calls needed from the fragment.
-
-
Constructor Summary
Constructors Constructor Description AlertChallengePresenter()Default constructor using the defaultChallengeParamsAlertChallengePresenter(ChallengeParams challengeParams)Constructor with a customChallengeParams
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Challenge>getAlertChallenges()voidgetAlertChallengesAPI()Calls the Challenge api to retrieve the alert challenges
-
-
-
Constructor Detail
-
AlertChallengePresenter
public AlertChallengePresenter()
Default constructor using the defaultChallengeParams
-
AlertChallengePresenter
public AlertChallengePresenter(@Nullable ChallengeParams challengeParams)Constructor with a customChallengeParams- Parameters:
challengeParams- contains the query parameters
-
-
Method Detail
-
getAlertChallengesAPI
public void getAlertChallengesAPI()
Calls the Challenge api to retrieve the alert challenges
-
getAlertChallenges
public java.util.List<Challenge> getAlertChallenges()
- Returns:
- the list of
ChallengefromgetAlertChallengesAPI()
-
-