ICInteractiveData

ICInteractiveData

This class represents the data for user interaction on message

getType

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

Syntax: public ICInteractiveDataType getType()

Returns: interactive data type for message

setType

This method sets the type of the Interactive Data.

Syntax: public void setType(ICInteractiveDataType type)

Parameters: type - type of the Interactive Data

getSubmittedAt

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

Syntax: public java.util.Date getSubmittedAt()

Returns: interaction data submitted date

setSubmittedAt

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

Syntax: public void setSubmittedAt(java.util.Date submittedAt)

Parameters: submittedAt - The date on which the message interaction data was submitted.

setTid

This method sets the transaction id for form response message.

Syntax: public void setTid(java.lang.String tid)

Parameters: tid  - transaction id that uniquely identifies the form response message

getPayload

This method gets interactive payload data

Syntax: public org.json.JSONObject getPayload()

Returns: interactive payload data

toJSON

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

Syntax: public org.json.JSONObject toJSON()
throws org.json.JSONException

Returns: A JSONObject representation of the message interactive data.

Throws: org.json.JSONException

fromJSON

Instantiates a new ICInteractiveData instance from the supplied JSONObject.

Syntax: public static ICInteractiveData fromJSON(org.json.JSONObject jsonObject)

Parameters: jsonObject - A valid JSONObject instance containing message interactive data.

Returns: A new ICInteractiveData or null if jsonObj is null.