本文整理匯總了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);