/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* Enum controlling behavior for incoming subscription request.
* @readonly
* @enum {number}
**/
linphone.SubscribePolicy = {
/**
* Does not automatically accept an incoming subscription request. This policy implies that a decision has
* to be taken for each incoming subscription request notified by callback
*/
Wait : 0,
/**
* Rejects incoming subscription request.
*/
Deny : 1,
/**
* Automatically accepts a subscription request.
*/
Accept : 2
};
/**
* Get the name of a value of the SubscribePolicy enum as a string.
* @function linphone#getSubscribePolicyText
* @param { number } value - One of the values of the SubscribePolicy enum.
**/
linphone.getSubscribePolicyText = function(value) {
switch (value) {
case linphone.SubscribePolicy.Wait:
return "Wait";
case linphone.SubscribePolicy.Deny:
return "Deny";
case linphone.SubscribePolicy.Accept:
return "Accept";
default:
return "?";
}
};