| Modifier and Type | Method and Description |
|---|---|
ArrayList<Agency> |
SharedPreference.getFavorites(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
SharedPreference.addFavorite(Context context,
Agency agency) |
void |
AgenciesFragment.onAgencyClick(int position,
View view,
Agency agency) |
void |
FavoritesListFragment.onAgencyClick(int position,
View view,
Agency agency) |
void |
AgenciesFragment.onFavoriteClick(int position,
View view,
Agency agency) |
void |
FavoritesListFragment.onFavoriteClick(int position,
View view,
Agency agency) |
void |
SharedPreference.removeFavorite(Context context,
Agency agency) |
| Modifier and Type | Method and Description |
|---|---|
void |
SharedPreference.saveFavorites(Context context,
List<Agency> favorites) |
| Modifier and Type | Method and Description |
|---|---|
Agency |
Service.getAgency() |
Agency |
User.getAgency() |
| Modifier and Type | Method and Description |
|---|---|
void |
Service.setAgency(Agency agency) |
void |
User.setAgency(Agency agency) |
| Modifier and Type | Method and Description |
|---|---|
Single<Agency> |
AgencyRepository.get(UUID id) |
Single<Agency> |
HomesteadService.getAgency(UUID id) |
Single<List<Agency>> |
HomesteadService.getAllAgencies() |
Single<List<Agency>> |
AgencyRepository.getAllAgencies() |
Single<Agency> |
HomesteadService.postAgency(String oauthHeader,
Agency agency) |
Single<Agency> |
HomesteadService.putAgency(String oauthHeader,
Agency agency,
UUID id) |
| Modifier and Type | Method and Description |
|---|---|
Single<Agency> |
HomesteadService.postAgency(String oauthHeader,
Agency agency) |
Single<Agency> |
HomesteadService.putAgency(String oauthHeader,
Agency agency,
UUID id) |
Completable |
AgencyRepository.removeAgency(String token,
Agency agency) |
Completable |
AgencyRepository.saveAgency(String token,
Agency agency) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FavoritesListAdapter.checkFavoriteItem(Agency checkAgency) |
void |
FavoritesListAdapter.OnAgencyClickListener.onAgencyClick(int position,
View view,
Agency agency) |
void |
FavoritesListAdapter.OnFavoriteClickListener.onFavoriteClick(int position,
View view,
Agency agency) |
| Constructor and Description |
|---|
FavoritesListAdapter(Context context,
List<Agency> agencies,
FavoritesListAdapter.OnAgencyClickListener clickListener,
FavoritesListAdapter.OnFavoriteClickListener favoriteListener) |
| Modifier and Type | Method and Description |
|---|---|
LiveData<List<Agency>> |
AgencyViewModel.getAgencies() |
LiveData<Agency> |
AgencyViewModel.getAgency() |
| Modifier and Type | Method and Description |
|---|---|
void |
AgencyViewModel.remove(Agency agency) |
void |
AgencyViewModel.save(Agency agency) |