use of com.apt.ApiFactory in project T-MVP by north2016.
the class ArticlePresenter method initAdapterPresenter.
@Override
public void initAdapterPresenter(AdapterPresenter mAdapterPresenter, ImageInfo mArticle) {
String article = new Gson().toJson(new Pointer(Image.class.getSimpleName(), mArticle.objectId));
mAdapterPresenter.setDbRepository(DbFactory::getCommentList).setNetRepository(ApiFactory::getCommentList).setParam(C.INCLUDE, C.CREATER).setParam(C.ARTICLE, article).setParam(C.OBJECT_ID, mArticle.objectId).fetch();
}
Aggregations