/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* Enum for subscription direction (incoming or outgoing).
* @readonly
* @enum {number}
**/
linphone.SubscriptionDir = {
/**
* Incoming subscription.
*/
Incoming : 0,
/**
* Outgoing subscription.
*/
Outgoing : 1,
/**
* Invalid subscription direction.
*/
InvalidDir : 2
};
/**
* Get the name of a value of the SubscriptionDir enum as a string.
* @function linphone#getSubscriptionDirText
* @param { number } value - One of the values of the SubscriptionDir enum.
**/
linphone.getSubscriptionDirText = function(value) {
switch (value) {
case linphone.SubscriptionDir.Incoming:
return "Incoming";
case linphone.SubscriptionDir.Outgoing:
return "Outgoing";
case linphone.SubscriptionDir.InvalidDir:
return "InvalidDir";
default:
return "?";
}
};