Source: linphoneevent.js

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

/**
 * Object representing an event state, which is subcribed or published. 
 * @external LinphoneEvent
**/
/**
 * Returns back pointer to the LinphoneCore that created this LinphoneEvent 
 * @member {external:LinphoneCore} external:LinphoneEvent#core
 * @readonly
**/
/**
 * Get full details about an error occured. 
 * @member {external:LinphoneErrorInfo} external:LinphoneEvent#errorInfo
 * @readonly
**/
/**
 * Get the "from" address of the subscription. 
 * @member {external:LinphoneAddress} external:LinphoneEvent#from
 * @readonly
**/
/**
 * Get the name of the event as specified in the event package RFC. 
 * @member {string} external:LinphoneEvent#name
 * @readonly
**/
/**
 * Get publish state. If the event object was not created by a publish mechanism, 
 * @member {linphone.PublishState} external:LinphoneEvent#publishState
 * @readonly
**/
/**
 * Return reason code (in case of error state reached). 
 * @member {linphone.Reason} external:LinphoneEvent#reason
 * @readonly
**/
/**
 * Get the resource address of the subscription or publish. 
 * @member {external:LinphoneAddress} external:LinphoneEvent#resource
 * @readonly
**/
/**
 * Get subscription direction. If the object wasn't created by a subscription mechanism, 
 * @member {linphone.SubscriptionDir} external:LinphoneEvent#subscriptionDir
 * @readonly
**/
/**
 * Get subscription state. If the event object was not created by a subscription mechanism, 
 * @member {linphone.SubscriptionState} external:LinphoneEvent#subscriptionState
 * @readonly
**/

/**
 * Accept an incoming subcription. 
 * @function external:LinphoneEvent#acceptSubscription
 * @returns {number} 
**/

/**
 * Add a custom header to an outgoing susbscription or publish. 
 * @function external:LinphoneEvent#addCustomHeader
 * @param {string} name - header's name 
 * @param {string} value - the header's value. 
 * @returns {void} 
**/

/**
 * Deny an incoming subscription with given reason. 
 * @function external:LinphoneEvent#denySubscription
 * @param {linphone.Reason} reason - 
 * @returns {number} 
**/

/**
 * Obtain the value of a given header for an incoming subscription. 
 * @function external:LinphoneEvent#getCustomHeader
 * @param {string} name - header's name 
 * @returns {string} 
**/

/**
 * Send a notification. 
 * @function external:LinphoneEvent#notify
 * @param {external:LinphoneContent} body - an optional body containing the actual notification data. 
 * @returns {number} 
**/

/**
 * Send a publish created by 
 * @function external:LinphoneEvent#sendPublish
 * @param {external:LinphoneContent} body - the new data to be published 
 * @returns {number} 
**/

/**
 * Send a subscription previously created by 
 * @function external:LinphoneEvent#sendSubscribe
 * @param {external:LinphoneContent} body - optional content to attach with the subscription. 
 * @returns {number} 
**/

/**
 * Terminate an incoming or outgoing subscription that was previously acccepted, or a previous publication.
 * This function does not unref the object. The core will unref() if it does not need this object anymore.
 * @function external:LinphoneEvent#terminate
 * @returns {void} 
**/

/**
 * Update (refresh) a publish. 
 * @function external:LinphoneEvent#updatePublish
 * @param {external:LinphoneContent} body - the new data to be published 
 * @returns {number} 
**/

/**
 * Update (refresh) an outgoing subscription. 
 * @function external:LinphoneEvent#updateSubscribe
 * @param {external:LinphoneContent} body - an optional body to include in the subscription update, may be NULL. 
 * @returns {number} 
**/