ICGenericTemplateAttachment (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.

ICGenericTemplateAttachment

This class exposes the data related to generic template attachment.

getElements

This method is used to get the template elements of the generic template attachment.

Syntax: ICGenericTemplateElement [] getElements ()

Return Value: Returns the Array of ICGenericTemplateElement of the generic template attachment .

setElements

This method is used to set the elements of the generic template attachment.

Syntax: void setElements (ICGenericTemplateElement [] elements)

Parameter:

ParameterTypeDescription
elementsICGenericTemplateElement []The array of generic template elements.

getReference

This method is used to get the reference of the generic template attachment .

Syntax: String getReference ()

Return Value: Returns the reference of the generic template attachment.

setReference

This method is used to set the reference of the generic template attachment .

Syntax: void setReference (String reference)

Parameter:

ParameterTypeDescription
referenceStringThe reference of the generic template attachment .

toJSON

This method returns the JSONObject containing the Generic template attachment data.

Syntax: JSONObject toJSON ()

Return Value: Returns JSONObject representation of the Generic template attachment.

fromJSON

Instantiates a new ICGenericTemplateAttachment instance from the supplied JSONObject.

Syntax: ICGenericTemplateAttachment fromJSON (JSONObject jsonObject)

Parameter:

ParameterTypeDescription
jsonObjectJSONObjectA valid JSONObject instance containing template attachment data.

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