Search in sources :

Example 1 with BuildListDataModelImpl

use of com.github.vase4kin.teamcityapp.buildlist.data.BuildListDataModelImpl in project TeamCityApp by vase4kin.

the class BuildListPresenterImpl method onResetFiltersSnackBarActionClick.

/**
 * {@inheritDoc}
 */
@Override
public void onResetFiltersSnackBarActionClick() {
    mView.disableSwipeToRefresh();
    mView.showRefreshAnimation();
    mView.hideErrorView();
    mView.hideEmpty();
    mView.showData(new BuildListDataModelImpl(Collections.<BuildDetails>emptyList()));
    mDataManager.load(mValueExtractor.getId(), loadingListener, true);
}
Also used : BuildDetails(com.github.vase4kin.teamcityapp.overview.data.BuildDetails) BuildListDataModelImpl(com.github.vase4kin.teamcityapp.buildlist.data.BuildListDataModelImpl)

Example 2 with BuildListDataModelImpl

use of com.github.vase4kin.teamcityapp.buildlist.data.BuildListDataModelImpl in project TeamCityApp by vase4kin.

the class BuildListPresenterImpl method onFilterBuildsActivityResult.

/**
 * {@inheritDoc}
 */
@Override
public void onFilterBuildsActivityResult(BuildListFilter filter) {
    mView.showBuildFilterAppliedSnackBar();
    mView.disableSwipeToRefresh();
    mView.showRefreshAnimation();
    mView.hideErrorView();
    mView.hideEmpty();
    mView.showData(new BuildListDataModelImpl(Collections.<BuildDetails>emptyList()));
    mDataManager.load(mValueExtractor.getId(), filter, loadingListener, true);
}
Also used : BuildDetails(com.github.vase4kin.teamcityapp.overview.data.BuildDetails) BuildListDataModelImpl(com.github.vase4kin.teamcityapp.buildlist.data.BuildListDataModelImpl)

Aggregations

BuildListDataModelImpl (com.github.vase4kin.teamcityapp.buildlist.data.BuildListDataModelImpl)2 BuildDetails (com.github.vase4kin.teamcityapp.overview.data.BuildDetails)2