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 ofLcePresenter
which is bound to theContentPageView
, which means that this will be used to display aContentPage
to 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 ContentPagesAPI
getContentPageAPI()
Get current instance ofContentPagesAPI
protected ListenerModel<BaseModel<ContentPage>,ContentPage>
getContentPageReceivedListener()
Create a listener forContentPagesAPI
void
loadData()
Load initial view data.protected void
onContentPageLoadFailed(java.lang.String error)
Called after a failed call for load content pageprotected void
onContentPageLoadSuccess(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
ContentPagesAPI
requests
-
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 inContentPage
format
-
getContentPageAPI
protected ContentPagesAPI getContentPageAPI()
Get current instance ofContentPagesAPI
- Returns:
ContentPagesAPI
used on this presenter
-
loadData
public void loadData()
Description copied from class:LcePresenter
Load initial view data.- Specified by:
loadData
in classLcePresenter<T extends ContentPageView>
-
-