use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.
the class CharacterActivity method makeRequest.
@Override
protected void makeRequest() {
QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(false).putVariable(KeyUtil.arg_id, id);
getViewModel().getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
getViewModel().requestData(KeyUtil.CHARACTER_BASE_REQ, getApplicationContext());
}
use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.
the class MediaActivity method makeRequest.
@Override
protected void makeRequest() {
QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(false).putVariable(KeyUtil.arg_mediaType, mediaType).putVariable(KeyUtil.arg_id, id);
getViewModel().getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
getViewModel().requestData(KeyUtil.MEDIA_BASE_REQ, getApplicationContext());
}
use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.
the class ProfileActivity method makeRequest.
@Override
protected void makeRequest() {
QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(false).putVariable(KeyUtil.arg_userId, id).putVariable(KeyUtil.arg_userName, userName);
getViewModel().getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
getViewModel().requestData(KeyUtil.USER_BASE_REQ, getApplicationContext());
}
use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.
the class StaffActivity method makeRequest.
@Override
protected void makeRequest() {
QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(false).putVariable(KeyUtil.arg_id, id);
getViewModel().getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
getViewModel().requestData(KeyUtil.STAFF_BASE_REQ, getApplicationContext());
}
use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.
the class MediaStatsFragment method makeRequest.
/**
* All new or updated network requests should be handled in this method
*/
@Override
public void makeRequest() {
QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(false).putVariable(KeyUtil.arg_id, mediaId).putVariable(KeyUtil.arg_type, mediaType);
getViewModel().getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
getViewModel().requestData(KeyUtil.MEDIA_STATS_REQ, getContext());
}
Aggregations