Class StaticFilesPresenter<T extends StaticFilesView>
- java.lang.Object
-
- com.cheetahdigital.uikit.architecture.mvp.MvpNullObjectBasePresenter<V>
-
- com.cheetahdigital.uikit.architecture.mvp.Presenter<V>
-
- com.cheetahdigital.uikit.architecture.lce.LcePresenter<V>
-
- com.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter<V>
-
- com.cheetahdigital.uikit.widget.list.ListPresenter<T>
-
- com.cheetahdigital.content.ui.staticfiles.list.StaticFilesPresenter<T>
-
- All Implemented Interfaces:
MvpPresenter<T>
public class StaticFilesPresenter<T extends StaticFilesView> extends ListPresenter<T>
This presenter class contains all the StellarSDK calls for displaying the list of Static Files that the server will return.
-
-
Constructor Summary
Constructors Constructor Description StaticFilesPresenter()StaticFilesPresenter(StaticFilesParams staticFilesParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StaticFilesAPIgetStaticFilesAPI()Get current instance ofStaticFilesAPIprotected ListenerModel<BaseModel<StaticFiles>,StaticFiles>getStaticFilesReceivedListener()Create a listener forStaticFilesAPIvoidloadData()Load initial view data.voidonRefreshSuccess(BaseData data)End of refresh with success request.voidrefreshData()Start the refresh view data.-
Methods inherited from class com.cheetahdigital.uikit.architecture.refreshable.RefreshablePresenter
isRefreshing, onRefreshFailed
-
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
-
StaticFilesPresenter
public StaticFilesPresenter()
-
StaticFilesPresenter
public StaticFilesPresenter(StaticFilesParams staticFilesParams)
-
-
Method Detail
-
getStaticFilesReceivedListener
protected ListenerModel<BaseModel<StaticFiles>,StaticFiles> getStaticFilesReceivedListener()
Create a listener forStaticFilesAPI- Returns:
- listener to handle
StaticFilesAPIrequests
-
getStaticFilesAPI
protected StaticFilesAPI getStaticFilesAPI()
Get current instance ofStaticFilesAPI- Returns:
StaticFilesAPIused on this presenter
-
loadData
public void loadData()
Description copied from class:LcePresenterLoad initial view data.- Specified by:
loadDatain classLcePresenter<T extends StaticFilesView>
-
refreshData
public void refreshData()
Description copied from class:RefreshablePresenterStart the refresh view data.- Overrides:
refreshDatain classRefreshablePresenter<T extends StaticFilesView>
-
onRefreshSuccess
public void onRefreshSuccess(BaseData data)
Description copied from class:RefreshablePresenterEnd of refresh with success request.- Overrides:
onRefreshSuccessin classRefreshablePresenter<T extends StaticFilesView>- Parameters:
data- theBaseData.
-
-