ICInteractiveData (Discontinued)

🚧

Note

Please note that we have announced end of sale for Cordova SDK. It is no longer offered as a standard Webex Connect capability.

This class represents the data for user interaction on message.

setType

This method sets the type of Interactive Data.


Parameters:

ParameterTypeDescription
typeICInteractiveDataTypetype of the Interactive Data

getType

This method is used to get the interactive data type for message

Return Value: Returns ICInteractiveDataType type of the Interactive Data.

setTid (Deprecated)

This method sets the transaction id for the form response message.

Parameters:

ParameterTypeDescription
tidStringTransaction id that uniquely identifies the form response message

setPayload

This method sets the interactive payload data.


Parameters:

ParameterTypeDescription
payloadJSONObjectThe interactive payload data

getPayload

This method gets interactive payload data.

Return Value: Returns JSONObject the interactive payload data.

setSubmittedAt

Sets the date on which the interaction data was submitted to the imiconnect platform


Parameters:

ParameterTypeDescription
submittedAtDateThe interactive payload data

getSubmittedAt

Returns the date on which the interaction data was submitted to the imiconnect platform.

Return Value: Returns Date submitted date.

toJSON

This method returns a new JSONObject instance containing message interactive data.

Return Value: Returns JSONObject representation of the message interactive data.

fromJSON

Instantiates a new ICInteractiveData instance from the supplied JSONObject.

Parameters:

ParameterTypeDescription
jsonObjectJSONObjectA valid JSONObject instance containing message interactive data.

Return Value: Returns A new ICInteractiveData or null if jsonObject is null.

getIdentifier

This method is used to get the identifier of the Interactive Data .

Syntax: String getIdentifier()

Return Value: Returns the identifier of the Interactive Data .

setIdentifier

This method is used to set the identifier of the Interactive Data .

Syntax: void setIdentifier (String identifier)

Parameter:

ParameterTypeDescription
identifierStringThe identifier of the Interactive Data.

getTitle

This method is used to get the title of the Interactive Button .

Syntax: String getTitle()

Return Value: Returns the title of the Interactive Button .

setTitle

This method is used to set the title of the Interactive Button .

Syntax: void setTitle(String title)

Parameter:

ParameterTypeDescription
titleStringThe title of the Interactive Button.

getReference

This method is used to get the reference of the Interactive data.

Syntax: String getReference()

Return Value: Returns the reference of the Interactive data.

setReference

This method sets the reference of the Interactive data.

Syntax: void setReference(String reference)

Parameter:

ParameterTypeDescription
referenceStringThe reference of the Interactive data.

getRelatedTransactionId

This method is used to get the transaction id for message Data response.

Syntax: String getRelatedTransactionId()

Return Value: Returns the related Transaction Id of the Interactive data.

setRelatedTransactionId

This method sets the related Transaction Id of the Interactive data.

Syntax: void setRelatedTransactionId(String relatedTransactionId)

Parameter:

ParameterTypeDescription
relatedTransactionIdStringThe transaction id for message Data response