Class ContentPagePresenter<T extends ContentPageView>
- java.lang.Object
-
- com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter<V>
-
- com.cheetahdigital.uikit.architecture.mvp.Presenter<V>
-
- com.cheetahdigital.uikit.architecture.lce.LcePresenter<T>
-
- com.cheetahdigital.content.ui.contentpage.detail.ContentPagePresenter<T>
-
- All Implemented Interfaces:
MvpPresenter<T>
public class ContentPagePresenter<T extends ContentPageView> extends LcePresenter<T>
This presenter class contains all the StellarSDK calls for the StellarContentPages module. This is a child class ofLcePresenterwhich is bound to theContentPageView, which means that this will be used to display aContentPageto a view of typeContentPageView
-
-
Constructor Summary
Constructors Constructor Description ContentPagePresenter(java.lang.String contentPageName)ContentPagePresenter(java.lang.String contentPageName, ContentPagesParams contentPagesParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ContentPagesAPIgetContentPageAPI()Get current instance ofContentPagesAPIprotected ListenerModel<BaseModel<ContentPage>,ContentPage>getContentPageReceivedListener()Create a listener forContentPagesAPIvoidloadData()Load initial view data.protected voidonContentPageLoadFailed(java.lang.String error)Called after a failed call for load content pageprotected voidonContentPageLoadSuccess(ContentPage data)Called after a successful call for load content page-
Methods inherited from class com.cheetahdigital.uikit.architecture.lce.LcePresenter
onLoadFailed, onLoadSuccess
-
Methods inherited from class com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter
attachView, detachView, getView
-
-
-
-
Constructor Detail
-
ContentPagePresenter
public ContentPagePresenter(java.lang.String contentPageName)
-
ContentPagePresenter
public ContentPagePresenter(java.lang.String contentPageName, ContentPagesParams contentPagesParams)
-
-
Method Detail
-
getContentPageReceivedListener
protected ListenerModel<BaseModel<ContentPage>,ContentPage> getContentPageReceivedListener()
Create a listener forContentPagesAPI- Returns:
- listener to handle
ContentPagesAPIrequests
-
onContentPageLoadFailed
protected void onContentPageLoadFailed(java.lang.String error)
Called after a failed call for load content page- Parameters:
error- details of the error message
-
onContentPageLoadSuccess
protected void onContentPageLoadSuccess(ContentPage data)
Called after a successful call for load content page- Parameters:
data- response inContentPageformat
-
getContentPageAPI
protected ContentPagesAPI getContentPageAPI()
Get current instance ofContentPagesAPI- Returns:
ContentPagesAPIused on this presenter
-
loadData
public void loadData()
Description copied from class:LcePresenterLoad initial view data.- Specified by:
loadDatain classLcePresenter<T extends ContentPageView>
-
-