Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SkillRequest

Creates a the JSON for a Service Request programmatically

This class assists with setting all the values on the request.

Additionally, the raw JSON can be accessed with the .json() property.

Hierarchy

  • SkillRequest

Index

Constructors

constructor

Methods

audioPlayer

  • audioPlayer(requestType: string, token: string, offsetInMilliseconds: number): SkillRequest
  • Creates an AudioPlayer request type

    Parameters

    • requestType: string

      One the of the AudioPlayer RequestTypes

    • token: string
    • offsetInMilliseconds: number

    Returns SkillRequest

dialogState

elementSelected

intent

intentStatus

json

  • json(): any
  • The raw JSON of the request. This can be directly manipulated to modify what is sent to the skill.

    Returns any

launch

requestType

requiresSession

  • requiresSession(): boolean

send

sessionEnded

set

  • Convenience method to set properties on the request object - uses lodash set under the covers. Returns this for chaining

    Parameters

    • path: string

      The dot-notation path for the property to set

    • value: any

      The value to set it to

    Returns SkillRequest

slot

slotStatus

slots

Generated using TypeDoc