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
- theMvpView
class
- All Implemented Interfaces:
MvpPresenter<V>
public class AlertChallengePresenter<V extends AlertChallengeView> extends MvpNullObjectBasePresenter<V>
TheMvpPresenter
class 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 defaultChallengeParams
AlertChallengePresenter(ChallengeParams challengeParams)
Constructor with a customChallengeParams
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Challenge>
getAlertChallenges()
void
getAlertChallengesAPI()
Calls the Challenge api to retrieve the alert challenges-
Methods inherited from class com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter
attachView, detachView, getView
-
-
-
-
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
Challenge
fromgetAlertChallengesAPI()
-
-