ICTemplateAttachment
ICTemplateAttachment
This class represents template attachment.
getTemplateType
This method is used to get the template type
Syntax: public ICTemplateType getTemplateType()
Returns: type of template
setTemplateType
This method sets the template type
Syntax: public void setTemplateType(ICTemplateType templateType)
Parameters: templateType - - type of template
getTemplateId
This method returns the template Id .
Syntax: public java.lang.String getTemplateId()
Returns: Returns the Id for the template.
setTemplateId
This method sets the template Id
Syntax: public void setTemplateId(java.lang.String mTemplateId)
Parameters: mTemplateId - the Id for the template
toJSON
This method returns a new JSONObject instance containing template attachment data.
Syntax: public org.json.JSONObject toJSON()
throws org.json.JSONException
Returns: A JSONObject representation of the template attachment data.
Throws: org.json.JSONException
fromJSON
Instantiates a new ICTemplateAttachment instance from the supplied JSONObject.
Syntax: public static ICTemplateAttachment fromJSON(org.json.JSONObject jsonObject)
Parameters: jsonObject - A valid JSONObject instance containing template attachment data.
Returns: A new ICTemplateAttachment or null if jsonObj is null.
Updated 12 months ago