Class UserRepository
- java.lang.Object
-
- edu.cnm.deepdive.teamassignmentsandroid.service.UserRepository
-
public class UserRepository extends Object
Fetches User data from WebServiceProxy.
-
-
Constructor Summary
Constructors Constructor Description UserRepository(Context context)
Passes Context for Google Sign in Service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.reactivex.Single<User>
getUserProfile()
Sets user, gets bearer token for authentication.
-
-
-
Constructor Detail
-
UserRepository
public UserRepository(Context context)
Passes Context for Google Sign in Service.- Parameters:
context
- is this instance of the repository.
-
-
Method Detail
-
getUserProfile
public io.reactivex.Single<User> getUserProfile()
Sets user, gets bearer token for authentication.- Returns:
- scheduler for IO work after token is received.
-
-