use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.
the class ReviewFragment method makeRequest.
/**
* All new or updated network requests should be handled in this method
*/
@Override
public void makeRequest() {
if (mediaId == 0)
return;
QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(isPager).putVariable(KeyUtil.arg_mediaId, mediaId).putVariable(KeyUtil.arg_mediaType, mediaType).putVariable(KeyUtil.arg_page, getPresenter().getCurrentPage());
getViewModel().getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
getViewModel().requestData(KeyUtil.MEDIA_REVIEWS_REQ, getContext());
}
use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.
the class StudioMediaFragment method makeRequest.
@Override
public void makeRequest() {
QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(isPager).putVariable(KeyUtil.arg_id, id).putVariable(KeyUtil.arg_page, getPresenter().getCurrentPage());
getViewModel().getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
getViewModel().requestData(KeyUtil.STUDIO_MEDIA_REQ, getContext());
}
use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.
the class StaffFavouriteFragment method makeRequest.
@Override
public void makeRequest() {
QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(isPager).putVariable(KeyUtil.arg_id, userId).putVariable(KeyUtil.arg_page, getPresenter().getCurrentPage());
getViewModel().getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
getViewModel().requestData(KeyUtil.USER_STAFF_FAVOURITES_REQ, getContext());
}
use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.
the class StudioFavouriteFragment method makeRequest.
@Override
public void makeRequest() {
QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(isPager).putVariable(KeyUtil.arg_id, userId).putVariable(KeyUtil.arg_page, getPresenter().getCurrentPage());
getViewModel().getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
getViewModel().requestData(KeyUtil.USER_STUDIO_FAVOURITES_REQ, getContext());
}
use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.
the class MediaFormatFragment method makeRequest.
/**
* All new or updated network requests should be handled in this method
*/
@Override
public void makeRequest() {
QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(isPager).putVariable(KeyUtil.arg_id, id).putVariable(KeyUtil.arg_mediaType, mediaType).putVariable(KeyUtil.arg_page, getPresenter().getCurrentPage());
getViewModel().getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
getViewModel().requestData(requestType, getContext());
}
Aggregations