Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (24 loc) · 5.69 KB

File metadata and controls

32 lines (24 loc) · 5.69 KB

core / org.rewedigital.dialog.model.google / RichResponse

RichResponse

data class RichResponse

Constructors

Name Summary
<init> RichResponse(items: MutableList<ResponseHolder> = mutableListOf(), suggestions: MutableList<Suggestion> = mutableListOf(), linkOutSuggestion: MutableList<LinkOutSuggestion> = mutableListOf())

Properties

Name Summary
items val items: MutableList<ResponseHolder>
linkOutSuggestion val linkOutSuggestion: MutableList<LinkOutSuggestion>
suggestions val suggestions: MutableList<Suggestion>

Functions

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