本文整理汇总了Java中com.fernandocejas.android10.sample.data.repository.datasource.UserDataStore类的典型用法代码示例。如果您正苦于以下问题:Java UserDataStore类的具体用法?Java UserDataStore怎么用?Java UserDataStore使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UserDataStore类属于com.fernandocejas.android10.sample.data.repository.datasource包,在下文中一共展示了UserDataStore类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: users
import com.fernandocejas.android10.sample.data.repository.datasource.UserDataStore; //导入依赖的package包/类
@SuppressWarnings("Convert2MethodRef")
@Override public Observable<List<User>> users() {
//we always get all users from the cloud
final UserDataStore userDataStore = this.userDataStoreFactory.createCloudDataStore();
return userDataStore.userEntityList()
.map(userEntities -> this.userEntityDataMapper.transform(userEntities));
}
示例2: users
import com.fernandocejas.android10.sample.data.repository.datasource.UserDataStore; //导入依赖的package包/类
@Override public Observable<List<User>> users() {
//we always get all users from the cloud
final UserDataStore userDataStore = this.userDataStoreFactory.createCloudDataStore();
return userDataStore.userEntityList().map(this.userEntityDataMapper::transform);
}
示例3: user
import com.fernandocejas.android10.sample.data.repository.datasource.UserDataStore; //导入依赖的package包/类
@Override public Observable<User> user(int userId) {
final UserDataStore userDataStore = this.userDataStoreFactory.create(userId);
return userDataStore.userEntityDetails(userId).map(this.userEntityDataMapper::transform);
}
示例4: user
import com.fernandocejas.android10.sample.data.repository.datasource.UserDataStore; //导入依赖的package包/类
@SuppressWarnings("Convert2MethodRef")
@Override public Observable<User> user(int userId) {
final UserDataStore userDataStore = this.userDataStoreFactory.create(userId);
return userDataStore.userEntityDetails(userId)
.map(userEntity -> this.userEntityDataMapper.transform(userEntity));
}