use of com.mxt.anitrend.model.entity.anilist.meta.MediaListOptions in project anitrend-app by AniTrend.
the class MediaActionUtil method actionPicker.
private void actionPicker() {
MediaListOptions mediaListOptions = presenter.getDatabase().getCurrentUser().getMediaListOptions();
// No need to add the parameter onList otherwise we'd have to handle an error code 404,
// Instead we'd rather check if the the media has a non null mediaList item
QueryContainerBuilder queryContainerBuilder = GraphUtil.INSTANCE.getDefaultQuery(false).putVariable(KeyUtil.arg_id, mediaId).putVariable(KeyUtil.arg_scoreFormat, mediaListOptions.getScoreFormat());
presenter.getParams().putParcelable(KeyUtil.arg_graph_params, queryContainerBuilder);
presenter.requestData(KeyUtil.MEDIA_WITH_LIST_REQ, context, this);
}
Aggregations