Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SkillResponse

Wrapper object for the Alexa Response.

Provides a number of convenience methods for accessing it.

Hierarchy

  • SkillResponse

Index

Constructors

constructor

Properties

response

response: any

Optional sessionAttributes

sessionAttributes: any

version

version: string

Methods

attr

  • attr(key: string): string
  • Gets the named key from the session attributes

    Parameters

    • key: string

    Returns string

attrs

  • attrs(...keys: string[]): any
  • Gets the named set of keys from the session attributes - uses lodash "pick" function

    Parameters

    • Rest ...keys: string[]

    Returns any

card

  • card(): any | undefined

cardContent

  • cardContent(): string | undefined

cardImage

  • cardImage(): any

cardLargeImage

  • cardLargeImage(): string | undefined

cardSmallImage

  • cardSmallImage(): string | undefined

cardTitle

  • cardTitle(): string | undefined

directive

  • directive(type: string): any

display

  • display(): any

primaryText

  • primaryText(listItemToken?: any): string | undefined
  • Returns the primary text for a display template If token is specified, grabs a list value for a list template

    Parameters

    • Optional listItemToken: any

    Returns string | undefined

prompt

  • prompt(): string | undefined

reprompt

  • reprompt(): string

secondaryText

  • secondaryText(listItemToken?: any): string | undefined
  • Returns the secondary text for a display template If token is specified, grabs a list value for a list template

    Parameters

    • Optional listItemToken: any

    Returns string | undefined

tertiaryText

  • tertiaryText(listItemToken?: any): string | undefined
  • Returns the tertiary text for a display template If token is specified, grabs a list value for a list template

    Parameters

    • Optional listItemToken: any

    Returns string | undefined

Generated using TypeDoc