本文整理汇总了Java中com.pushtorefresh.storio.sqlite.operations.put.PutResults类的典型用法代码示例。如果您正苦于以下问题:Java PutResults类的具体用法?Java PutResults怎么用?Java PutResults使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PutResults类属于com.pushtorefresh.storio.sqlite.operations.put包,在下文中一共展示了PutResults类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: putCommentsToDb
import com.pushtorefresh.storio.sqlite.operations.put.PutResults; //导入依赖的package包/类
private void putCommentsToDb(List<Comment> comments) {
mCompositeSubscription.add(
mLocalDataManager.putCommentsToDb(comments)
// mDataManager.putCommentsToDb(getActivity(), comments)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Action1<PutResults<Comment>>() {
@Override
public void call(PutResults<Comment> commentPutResults) {
// SharedPrefsManager.setCommentsBookmarked(prefs, mPost.getId());
mPrefsManager.setCommentsBookmarked(mPost.getId());
}
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
mCommentView.showErrorLog("putCommentsToDb", throwable.toString());
}
}));
}
示例2: putCommentsToDb
import com.pushtorefresh.storio.sqlite.operations.put.PutResults; //导入依赖的package包/类
@Override
public Observable<PutResults<Comment>> putCommentsToDb(List<Comment> commentList) {
return StorIOHelper.getStorIOSQLite(mContext)
.put()
.objects(commentList)
.prepare()
.asRxObservable().onBackpressureBuffer();
}
示例3: getStudentGroupPutObservable
import com.pushtorefresh.storio.sqlite.operations.put.PutResults; //导入依赖的package包/类
private Observable<PutResults<StudentGroup>> getStudentGroupPutObservable(List<StudentGroup> studentGroupList) {
return mStorIOSQLite.put()
.objects(studentGroupList)
.prepare()
.createObservable();
}
示例4: getEmployeePutObservable
import com.pushtorefresh.storio.sqlite.operations.put.PutResults; //导入依赖的package包/类
private Observable<PutResults<Employee>> getEmployeePutObservable(List<Employee> employeeList) {
return mStorIOSQLite.put()
.objects(employeeList)
.prepare()
.createObservable();
}
示例5: putCommentsToDb
import com.pushtorefresh.storio.sqlite.operations.put.PutResults; //导入依赖的package包/类
Observable<PutResults<Comment>> putCommentsToDb(List<Comment> commentList);