Source: linphonechatmessage.js

/* Wrapper generated by lp-gen-wrappers, do not edit*/

/**
 * A chat room message to old content to be sent. 
 * @external LinphoneChatMessage
**/
/**
 * Linphone message has an app-specific field that can store a text. The application might want to use it
 * for keeping data over restarts, like thumbnail image path.
 * @member {string} external:LinphoneChatMessage#appdata
**/
/**
 * Returns the chatroom this message belongs to. 
 * @member {external:LinphoneChatRoom} external:LinphoneChatMessage#chatRoom
 * @readonly
**/
/**
 * Get full details about delivery error of a chat message. 
 * @member {external:LinphoneErrorInfo} external:LinphoneChatMessage#errorInfo
 * @readonly
**/
/**
 * Linphone message can carry external body as defined by rfc2017
 * @member {string} external:LinphoneChatMessage#externalBodyUrl
**/
/**
 * Set the path to the file to read from or write to during the file transfer. 
 * @member {string} external:LinphoneChatMessage#fileTransferFilepath
**/
/**
 * Get the file_transfer_information (used by call backs to recover informations during a rcs file transfer)
 * @member {external:LinphoneContent} external:LinphoneChatMessage#fileTransferInformation
 * @readonly
**/
/**
 * Set origin of the message 
 * @member {external:LinphoneAddress} external:LinphoneChatMessage#fromAddress
**/
/**
 * Returns the origin address of a message if it was a outgoing message, or the destination address if it
 * was an incoming message. 
 * @member {external:LinphoneAddress} external:LinphoneChatMessage#localAddress
 * @readonly
**/
/**
 * Returns TRUE if the message has been sent, returns FALSE if the message has been received. 
 * @member {boolean} external:LinphoneChatMessage#outgoing
 * @readonly
**/
/**
 * Returns the peer (remote) address for the message. 
 * @member {external:LinphoneAddress} external:LinphoneChatMessage#peerAddress
 * @readonly
**/
/**
 * Returns TRUE if the message has been read, otherwise returns FALSE. 
 * @member {boolean} external:LinphoneChatMessage#read
 * @readonly
**/
/**
 * Get the state of the message 
 * @member {linphone.ChatMessageState} external:LinphoneChatMessage#state
 * @readonly
**/
/**
 * Returns the id used to identify this message in the storage database 
 * @member {number} external:LinphoneChatMessage#storageId
 * @readonly
**/
/**
 * Get text part of this message 
 * @member {string} external:LinphoneChatMessage#text
 * @readonly
**/
/**
 * Get the time the message was sent. 
 * @member {external:time_t} external:LinphoneChatMessage#time
 * @readonly
**/
/**
 * Set destination of the message 
 * @member {external:LinphoneAddress} external:LinphoneChatMessage#toAddress
**/

/**
 * Add custom headers to the message. 
 * @function external:LinphoneChatMessage#addCustomHeader
 * @param {string} header_name - name of the header_name 
 * @param {string} header_value - header value 
 * @returns {void} 
**/

/**
 * Duplicate a LinphoneChatMessage 
 * @function external:LinphoneChatMessage#clone
 * @returns {external:LinphoneChatMessage} 
**/

/**
 * Retrieve a custom header value given its name. 
 * @function external:LinphoneChatMessage#getCustomHeader
 * @param {string} header_name - header name searched 
 * @returns {string} 
**/

/**
 * Start the download of the file from remote server
 * @function external:LinphoneChatMessage#startFileDownload
 * @param {external:LinphoneChatMessageStateChangedCb} status_cb - LinphoneChatMessageStateChangeCb status callback invoked when file is downloaded or could not be downloaded 
 * @param {void} ud - 
 * @returns {void} 
**/

/**
 * Call back used to notify message delivery status 
 * @event external:LinphoneChatMessage#stateChanged
 * @type {object}
 * @property {external:LinphoneChatMessage} msg -  object 
 * @property {linphone.ChatMessageState} state - LinphoneChatMessageState 
 * @property {void} ud - application user data 
**/