class ActorsPresenter extends BasePresenter<ActorsPresenter.View> {

    @Override
    public void initialize() {
        getView().showLoading();
        getActorsByQuery.subscribe(new ActorsSubscriber());
        getActorsByQuery.setActions(new Actions(
                () -> getView().showLoading() ,
                () -> getView().hideLoading() ,
                () -> getView().clearAdapter()
        ));
        getView().hideLoading();
    }

    public  ActorsPresenter(GetActorsByQuery getActorsByQuery);

}