RuntimeResponseGenericRuntimeResponseTypeImage
public struct RuntimeResponseGenericRuntimeResponseTypeImage : Codable, Equatable
RuntimeResponseGenericRuntimeResponseTypeImage.
Enums with an associated value of RuntimeResponseGenericRuntimeResponseTypeImage: RuntimeResponseGeneric
-
The type of response returned by the dialog node. The specified response type must be supported by the client application or channel.
Declaration
Swift
public var responseType: String
-
The
https:
URL of the image.Declaration
Swift
public var source: String
-
The title or introductory text to show before the response.
Declaration
Swift
public var title: String?
-
The description to show with the the response.
Declaration
Swift
public var description: String?
-
An array of objects specifying channels for which the response is intended. If channels is present, the response is intended for a built-in integration and should not be handled by an API client.
Declaration
Swift
public var channels: [ResponseGenericChannel]?
-
Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
Declaration
Swift
public var altText: String?
-
Initialize a
RuntimeResponseGenericRuntimeResponseTypeImage
with member variables.Declaration
Swift
public init( responseType: String, source: String, title: String? = nil, description: String? = nil, channels: [ResponseGenericChannel]? = nil, altText: String? = nil )
Parameters
responseType
The type of response returned by the dialog node. The specified response type must be supported by the client application or channel.
source
The
https:
URL of the image.title
The title or introductory text to show before the response.
description
The description to show with the the response.
channels
An array of objects specifying channels for which the response is intended. If channels is present, the response is intended for a built-in integration and should not be handled by an API client.
altText
Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
Return Value
An initialized
RuntimeResponseGenericRuntimeResponseTypeImage
.