Search in sources :

Example 1 with ApiFactory

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();
}
Also used : ApiFactory(com.apt.ApiFactory) Gson(com.google.gson.Gson) Pointer(com.base.entity.Pointer)

Aggregations

ApiFactory (com.apt.ApiFactory)1 Pointer (com.base.entity.Pointer)1 Gson (com.google.gson.Gson)1