ICGenericTemplateAttachment

This class exposes the data related to generic template attachment.

getReference

This method is used to return reference for generic template attachment data.

Syntax:  String getReference()

Return Value: Reference for the generic template attachment data.

setElements

This method to set the elements for generic template attachment data.

Syntax:  void setElements(List<ICGenericTemplateElement> elements)

Parameters: 

ParameterTypeDescription
elementsListElements for generic template
attachment data

getElements

This method is used to return elements for generic template attachment data.

Syntax:  List<ICGenericTemplateElement> getElements()

Return Value: elements for generic template attachment data.

fromJSON

Instantiates a new ICGenericTemplateAttachment instance from the supplied JSONObject.

Syntax:  public static ICGenericTemplateAttachment fromJSON(JSONObject jsonObject)

Parameters: 

ParameterTypeDescription
jsonObjectJSONObjectA valid JSONObject instance containing generic template attachment data.

toJSON

This method returns a new JSONObject instance containing form generic template attachment data.

Syntax:  public JSONObject toJSON() throws JSONException

Returns: A JSONObject representation of the generic template attachment data.

Throws: org.json.JSONException

getReference()

This method is used to return reference for template attachment data.

Syntax:  String getReference()

Return Value: Reference for the template attachment data.