core / org.rewedigital.dialog.model.google / RichResponse
data class RichResponse
Name | Summary |
---|---|
<init> | RichResponse(items: MutableList < ResponseHolder > = mutableListOf(), suggestions: MutableList < Suggestion > = mutableListOf(), linkOutSuggestion: MutableList < LinkOutSuggestion > = mutableListOf()) |
Name | Summary |
---|---|
items | val items: MutableList < ResponseHolder > |
linkOutSuggestion | val linkOutSuggestion: MutableList < LinkOutSuggestion > |
suggestions | val suggestions: MutableList < Suggestion > |
Name | Summary |
---|---|
withBasicCard | fun withBasicCard(title: String ? = null, subtitle: String ? = null, formattedText: String ? = null, image: GoogleImage ? = null, buttons: MutableList < GoogleButton > = mutableListOf(), imageDisplayOptions: ImageDisplayOptions ? = ImageDisplayOptions.CROPPED): RichResponse |
withCarousel | fun withCarousel(items: MutableList < GoogleCarouselItem > = mutableListOf(), imageDisplayOptions: ImageDisplayOptions = ImageDisplayOptions.CROPPED): RichResponse |
withLinkOutSuggestion | fun withLinkOutSuggestion(destinationName: String , uri: String ): RichResponse |
withLinkOutSuggestions | fun withLinkOutSuggestions(suggestions: Map < String , String >): RichResponse fun withLinkOutSuggestions(vararg suggestions: LinkOutSuggestion ): RichResponse |
withMediaResponse | fun withMediaResponse(mediaType: MediaType = MediaType.MEDIA_TYPE_UNSPECIFIED, mediaObjects: MutableList < MediaObject > = mutableListOf()): RichResponse |
withSimpleResponse | fun withSimpleResponse(textToSpeech: String ? = null, ssml: String ? = null, displayText: String ? = null): RichResponse |
withSuggestions | fun withSuggestions(vararg suggestions: String ): RichResponse |
withTableCard | fun withTableCard(title: String ? = null, subtitle: String ? = null, image: Image ? = null, columnProperties: MutableList < ColumnProperties > = mutableListOf(), rows: MutableList < Row > = mutableListOf(), buttons: MutableList < Button > = mutableListOf()): RichResponse |