ICInteractiveData

This class represents the data for user interaction on message.

setType

This method sets the type of Interactive Data.

Parameters:

Parameter

Type

Description

type

ICInteractiveDataType

type 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

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

Parameters:

Parameter

Type

Description

tid

String

Transaction id that uniquely identifies the form response message

setPayload

This method sets the interactive payload data.

Parameters:

Parameter

Type

Description

payload

JSONObject

The 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:

Parameter

Type

Description

submittedAt

Date

The 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:

Parameter

Type

Description

jsonObject

JSONObject

A valid JSONObject instance containing message interactive data.

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