Package 

Class BaseUpdateContext

  • All Implemented Interfaces:

    
    public class BaseUpdateContext
    
                        

    Contains the basic information needed for communicating with VoiceKit.

    • Method Detail

      • getAction

         Action getAction()

        Represents an action used for communicating with VoiceKit component.

      • setAction

         Unit setAction(Action action)

        Represents an action used for communicating with VoiceKit component.

      • getIntent

         Intent getIntent()

        Intent will be received from VoiceKit when action is SHOW_SCREEN or UPDATE_CONTEXT

      • setIntent

         Unit setIntent(Intent intent)

        Intent will be received from VoiceKit when action is SHOW_SCREEN or UPDATE_CONTEXT

      • getStatus

         VoiceStatus getStatus()

        Represents the status from the Commerce Service.

      • getPageIndex

         Integer getPageIndex()

        Represents the current page index when there are search results.

      • setPageIndex

         Unit setPageIndex(@SerializedName(value = "page_index") Integer pageIndex)

        Represents the current page index when there are search results.

      • setIsFirstResume

         Unit setIsFirstResume(@SerializedName(value = "is_first_time_resume") Boolean isFirstResume)

        Indicates if is a first voice resume operation.

      • setResumeTimeInSeconds

         Unit setResumeTimeInSeconds(@SerializedName(value = "resume_time_in_seconds") Integer resumeTimeInSeconds)

        Indicates the time passed from the last user interaction with the system.

      • setShoppingSessionId

         Unit setShoppingSessionId(@SerializedName(value = "shopping_session_id") String shoppingSessionId)

        Current shopping session id

      • getSearchedLocation

         SearchLocation getSearchedLocation()

        Searched location. This field will contain the entry information about the search location. E.g 'find parking near Post Street' will have a searchLocation with query 'Post Street'

      • setSearchedLocation

         Unit setSearchedLocation(@SerializedName(value = "search_location") SearchLocation searchedLocation)

        Searched location. This field will contain the entry information about the search location. E.g 'find parking near Post Street' will have a searchLocation with query 'Post Street'

      • getLocations

         List<SearchLocation> getLocations()

        List of locations when a search by address was done. E.g "find parking/order food near Post Street". Multiple Post Street locations are received.

      • setLocations

         Unit setLocations(@SerializedName(value = "search_locations") List<SearchLocation> locations)

        List of locations when a search by address was done. E.g "find parking/order food near Post Street". Multiple Post Street locations are received.

      • toString

         String toString()

        Returns a string representation of the object.