Search in sources :

Example 36 with QueryContainerBuilder

use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.

the class StatusDeleteWidget method setParameters.

private void setParameters(long feedId, @KeyUtil.RequestType int requestType) {
    this.requestType = requestType;
    QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(false).putVariable(KeyUtil.arg_id, feedId);
    presenter.getParams().putParcelable(KeyUtil.arg_graph_params, queryContainer);
}
Also used : QueryContainerBuilder(com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder)

Example 37 with QueryContainerBuilder

use of com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder in project anitrend-app by AniTrend.

the class AutoIncrementWidget method getParam.

private Bundle getParam() {
    QueryContainerBuilder queryContainer = GraphUtil.getDefaultQuery(false);
    queryContainer.putVariable(KeyUtil.arg_mediaId, model.getMediaId());
    queryContainer.putVariable(KeyUtil.arg_listStatus, model.getStatus());
    queryContainer.putVariable(KeyUtil.arg_listScore_raw, model.getScore());
    queryContainer.putVariable(KeyUtil.arg_listNotes, model.getNotes());
    queryContainer.putVariable(KeyUtil.arg_listPrivate, model.isHidden());
    queryContainer.putVariable(KeyUtil.arg_listPriority, model.getPriority());
    queryContainer.putVariable(KeyUtil.arg_listHiddenFromStatusLists, model.isHiddenFromStatusLists());
    queryContainer.putVariable(KeyUtil.arg_listAdvancedScore, model.getAdvancedScores());
    queryContainer.putVariable(KeyUtil.arg_listCustom, model.getCustomLists());
    queryContainer.putVariable(KeyUtil.arg_listRepeat, model.getRepeat());
    queryContainer.putVariable(KeyUtil.arg_listProgress, model.getProgress());
    queryContainer.putVariable(KeyUtil.arg_listProgressVolumes, model.getProgressVolumes());
    Bundle bundle = new Bundle();
    bundle.putParcelable(KeyUtil.arg_graph_params, queryContainer);
    return bundle;
}
Also used : Bundle(android.os.Bundle) QueryContainerBuilder(com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder)

Aggregations

QueryContainerBuilder (com.mxt.anitrend.model.entity.container.request.QueryContainerBuilder)37 Bundle (android.os.Bundle)4 SuppressLint (android.annotation.SuppressLint)1