-
- All Implemented Interfaces:
-
com.telenav.commerce.voiceservice.businesslogic.localcontexthandler.api.ILocalContextHandler
public final class FoodContextHandler implements ILocalContextHandler
Concrete implementation of ILocalContextHandler for food context. This class will handle food context related actions
-
-
Constructor Summary
Constructors Constructor Description FoodContextHandler(FoodUpdateContext foodContext)
-
Method Summary
Modifier and Type Method Description Unit
updateLocalContext(LocalContext localContext)
This method will update the local context based on the information received from client BaseUpdateContext
getLocalContext()
This method is used for retrieving the current local context Unit
updateLocalContextWithVoiceContext(BaseUpdateContext baseUpdateContext)
This method will update the local context based on the information received from voice Unit
resetLocalContext()
This method will clear the local context -
-
Constructor Detail
-
FoodContextHandler
FoodContextHandler(FoodUpdateContext foodContext)
-
-
Method Detail
-
updateLocalContext
Unit updateLocalContext(LocalContext localContext)
This method will update the local context based on the information received from client
- Parameters:
localContext
- The context for the current flow step.
-
getLocalContext
BaseUpdateContext getLocalContext()
This method is used for retrieving the current local context
-
updateLocalContextWithVoiceContext
Unit updateLocalContextWithVoiceContext(BaseUpdateContext baseUpdateContext)
This method will update the local context based on the information received from voice
- Parameters:
baseUpdateContext
- The context for the current flow step.
-
resetLocalContext
Unit resetLocalContext()
This method will clear the local context
-
-
-
-