Within imiconnect all In-App messages are compartmentalized into logical threads of conversation. The ICThread class is the local representation of thread data within the IMIconnectPlugin.

Threads can be managed via the Plugin using the methods exposed by the IMIconnectPlugin and support data attributes such as title, category, status, and extras.

Before messages can be published from the plugin a thread must be provisioned within the imiconnect platform via IMIconnectPlugin.createThread or via the web APIs..

When replying to an existing thread, obtain an ICThread instance from an incoming ICMessage or from the IMIconnectPlugin.fetchThreads method.

getId

This method is used to get the thread Id information.

Syntax: String getId()

Return Value: Thread Id information.


##getTitle

This method is used to get the thread title.

Syntax: String getTitle()

Return Value: Thread title.


##setTitle

This method is used to set the thread title.

Syntax: void setTitle(final String title)

Parameter

Parameter

Type

Description

title

string

Title of the thread.


##getCategory

This method is used to get the category thread.

Syntax: String getCategory()

Return Value: Thread Category.


##setCategory

This method is used to set the category thread.

Syntax: void setCategory(String category)

Parameter:

Parameter

Type

Description

category

String

Category of the thread.


##getExternalId

This method is used to get the external id of the thread.

Syntax: String getExternalId()

Return Value: Thread External Id.


##setExternalId

This method is used to set the external id of the thread.

Syntax: void setExternalId(String externalId)

Parameter:

Parameter

Type

Description

externalId

String

Thread externalID


##getType

This method is used to get the thread type.

Syntax: String getType()

Return Value: Returns Thread Type.


##setType

This method is used to set the thread type.

Syntax: void setType(String type)

Parameter:

Parameter

Type

Description

type

String

Thread type


##getExtras

This method is used to get the extras.

Syntax: JSObject getExtras()

Return Value: Returns Extras.


##setExtras

This method is used to set the extras.

Syntax: void setExtras(JSObject extras)

*Parameter:

Parameter

Type

Description

Extras

Bundle

Extras of the thread


##getStatus

This method is used to get the status of the thread.

Syntax: public String getStatus()

Return Value: Returns the status of the thread.


##setTitle

This method is used to set the thread title.

Syntax: setTitle(String title)

Parameter

Type

Description

title

string

Title of the thread.


##getCreatedAt

This method is used to get the thread created date at the Connect platform.

Syntax: Date getCreatedAt()

Return Value: Thread created date at the imiconnect platform.


##getUpdatedAt

This method is used to get the thread updated date at the Connect platform.

Syntax: Date getUpdatedAt()

Return Value: Thread updated date at the Connect platform.