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 StaticFilesAPI
getStaticFilesAPI()
Get current instance ofStaticFilesAPI
protected ListenerModel<BaseModel<StaticFiles>,StaticFiles>
getStaticFilesReceivedListener()
Create a listener forStaticFilesAPI
void
loadData()
Load initial view data.void
onRefreshSuccess(BaseData data)
End of refresh with success request.void
refreshData()
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
StaticFilesAPI
requests
-
getStaticFilesAPI
protected StaticFilesAPI getStaticFilesAPI()
Get current instance ofStaticFilesAPI
- Returns:
StaticFilesAPI
used on this presenter
-
loadData
public void loadData()
Description copied from class:LcePresenter
Load initial view data.- Specified by:
loadData
in classLcePresenter<T extends StaticFilesView>
-
refreshData
public void refreshData()
Description copied from class:RefreshablePresenter
Start the refresh view data.- Overrides:
refreshData
in classRefreshablePresenter<T extends StaticFilesView>
-
onRefreshSuccess
public void onRefreshSuccess(BaseData data)
Description copied from class:RefreshablePresenter
End of refresh with success request.- Overrides:
onRefreshSuccess
in classRefreshablePresenter<T extends StaticFilesView>
- Parameters:
data
- theBaseData
.
-
-