/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* Activities as defined in section 3.2 of RFC 4480
* @readonly
* @enum {number}
**/
linphone.PresenceActivityType = {
/**
* This value is not defined in the RFC, it corresponds to no activity with a basic status of "closed".
*/
Offline : 0,
/**
* This value is not defined in the RFC, it corresponds to no activity with a basic status of "open".
*/
Online : 1,
/**
* The person has a calendar appointment, without specifying exactly of what type. This activity is indicated
* if more detailed information is not available or the person chooses not to reveal more information.
*/
Appointment : 2,
/**
* The person is physically away from all interactive communication devices.
*/
Away : 3,
/**
* The person is eating the first meal of the day, usually eaten in the morning.
*/
Breakfast : 4,
/**
* The person is busy, without further details.
*/
Busy : 5,
/**
* The person is having his or her main meal of the day, eaten in the evening or at midday.
*/
Dinner : 6,
/**
* This is a scheduled national or local holiday.
*/
Holiday : 7,
/**
* The person is riding in a vehicle, such as a car, but not steering.
*/
InTransit : 8,
/**
* The person is looking for (paid) work.
*/
LookingForWork : 9,
/**
* The person is eating his or her midday meal.
*/
Lunch : 10,
/**
* The person is scheduled for a meal, without specifying whether it is breakfast, lunch, or dinner, or some
* other meal.
*/
Meal : 11,
/**
* The person is in an assembly or gathering of people, as for a business, social, or religious purpose.
* A meeting is a sub-class of an appointment.
*/
Meeting : 12,
/**
* The person is talking on the telephone.
*/
OnThePhone : 13,
/**
* The person is engaged in an activity with no defined representation. A string describing the activity
* in plain text SHOULD be provided.
*/
Other : 14,
/**
* A performance is a sub-class of an appointment and includes musical, theatrical, and cinematic performances
* as well as lectures. It is distinguished from a meeting by the fact that the person may either be lecturing
* or be in the audience, with a potentially large number of other people, making interruptions particularly
* noticeable.
*/
Performance : 15,
/**
* The person will not return for the foreseeable future, e.g., because it is no longer working for the company.
*
*/
PermanentAbsence : 16,
/**
* The person is occupying himself or herself in amusement, sport, or other recreation.
*/
Playing : 17,
/**
* The person is giving a presentation, lecture, or participating in a formal round-table discussion.
*/
Presentation : 18,
/**
* The person is visiting stores in search of goods or services.
*/
Shopping : 19,
/**
* The person is sleeping.
*/
Sleeping : 20,
/**
* The person is observing an event, such as a sports event.
*/
Spectator : 21,
/**
* The person is controlling a vehicle, watercraft, or plane.
*/
Steering : 22,
/**
* The person is on a business or personal trip, but not necessarily in-transit.
*/
Travel : 23,
/**
* The person is watching television.
*/
TV : 24,
/**
* The activity of the person is unknown.
*/
Unknown : 25,
/**
* A period of time devoted to pleasure, rest, or relaxation.
*/
Vacation : 26,
/**
* The person is engaged in, typically paid, labor, as part of a profession or job.
*/
Working : 27,
/**
* The person is participating in religious rites.
*/
Worship : 28
};
/**
* Get the name of a value of the PresenceActivityType enum as a string.
* @function linphone#getPresenceActivityTypeText
* @param { number } value - One of the values of the PresenceActivityType enum.
**/
linphone.getPresenceActivityTypeText = function(value) {
switch (value) {
case linphone.PresenceActivityType.Offline:
return "Offline";
case linphone.PresenceActivityType.Online:
return "Online";
case linphone.PresenceActivityType.Appointment:
return "Appointment";
case linphone.PresenceActivityType.Away:
return "Away";
case linphone.PresenceActivityType.Breakfast:
return "Breakfast";
case linphone.PresenceActivityType.Busy:
return "Busy";
case linphone.PresenceActivityType.Dinner:
return "Dinner";
case linphone.PresenceActivityType.Holiday:
return "Holiday";
case linphone.PresenceActivityType.InTransit:
return "InTransit";
case linphone.PresenceActivityType.LookingForWork:
return "LookingForWork";
case linphone.PresenceActivityType.Lunch:
return "Lunch";
case linphone.PresenceActivityType.Meal:
return "Meal";
case linphone.PresenceActivityType.Meeting:
return "Meeting";
case linphone.PresenceActivityType.OnThePhone:
return "OnThePhone";
case linphone.PresenceActivityType.Other:
return "Other";
case linphone.PresenceActivityType.Performance:
return "Performance";
case linphone.PresenceActivityType.PermanentAbsence:
return "PermanentAbsence";
case linphone.PresenceActivityType.Playing:
return "Playing";
case linphone.PresenceActivityType.Presentation:
return "Presentation";
case linphone.PresenceActivityType.Shopping:
return "Shopping";
case linphone.PresenceActivityType.Sleeping:
return "Sleeping";
case linphone.PresenceActivityType.Spectator:
return "Spectator";
case linphone.PresenceActivityType.Steering:
return "Steering";
case linphone.PresenceActivityType.Travel:
return "Travel";
case linphone.PresenceActivityType.TV:
return "TV";
case linphone.PresenceActivityType.Unknown:
return "Unknown";
case linphone.PresenceActivityType.Vacation:
return "Vacation";
case linphone.PresenceActivityType.Working:
return "Working";
case linphone.PresenceActivityType.Worship:
return "Worship";
default:
return "?";
}
};