private void onGetNewsListOfCategoryFail(Throwable error) { ActionType type = MyAction.MyActionType.GET_NEWS_DETAIL_FAIL; DataBundle data = new DataBundle(); data.put(MyAction.MyDataKey.ERROR, error); Action action = new MyAction(type, data); super.dispatch(action); }
private void onGetNewsListOfCategorySuccessfully(String result) { ActionType type = MyAction.MyActionType.GET_NEWS_DETAIL_SUCCESSFULLY; DataBundle data = new DataBundle(); data.put(MyAction.MyDataKey.NEWS_CONTENT, result); Action action = new MyAction(type, data); super.dispatch(action); }