Interface LocalStorePreferencesService
- All Known Implementing Classes:
DefaultLocalStorePreferencesService
public interface LocalStorePreferencesService
Service relating to selecting a favourite local store
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds given point of service to favoriteReturns all the points of service with the distance from the session's stored search location for the current base store.Returns user's favourite stores listvoidremoveFromFavoritePointOfServices(PointOfServiceModel pointOfServiceModel) Removes given point of service from favoritevoidsetFavoritesPointOfServices(List<PointOfServiceModel> storesList) Stores user's favourite stores list
-
Method Details
-
getAllPointsOfService
List<PointOfServiceDistanceData> getAllPointsOfService()Returns all the points of service with the distance from the session's stored search location for the current base store.- Returns:
- session cached list of points of service.
- See Also:
-
getFavoritePointOfServices
List<PointOfServiceModel> getFavoritePointOfServices()Returns user's favourite stores list- Returns:
- stores list
-
setFavoritesPointOfServices
Stores user's favourite stores list- Parameters:
storesList- - list of favourite stores
-
addToFavouritePointOfServices
Adds given point of service to favorite- Parameters:
favorite- point of service to be added as favorite
-
removeFromFavoritePointOfServices
Removes given point of service from favorite- Parameters:
pointOfServiceModel- point of service to be removed as favorite
-