public class UserRepository extends Object
Constructor and Description |
---|
UserRepository(Context context)
This is the constructor for the UserRepository.
|
Modifier and Type | Method and Description |
---|---|
Completable |
delete(User user)
This is the method used to delete a user from the SmartCheff database.
|
LiveData<User> |
findCurrentUser(User user)
This method is user to find the current user.
|
LiveData<User> |
getAll(User user)
This method is user to get all the users in the SmartCheff database.
|
Completable |
save(User user)
This is the method used to save a user to the SmartCheff database.
|
public UserRepository(Context context)
context
- is reference to a Context object.public Completable save(User user)
user
- is a reference to a User object.public Completable delete(User user)
user
- is a reference to a User object.public LiveData<User> findCurrentUser(User user)
user
- a reference to a User object.