/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* LinphoneChatMessageState is used to notify if messages have been succesfully delivered or not.
* @readonly
* @enum {number}
**/
linphone.ChatMessageState = {
/**
* Initial state
*/
Idle : 0,
/**
* Delivery in progress
*/
InProgress : 1,
/**
* Message successfully delivered and acknowledged by remote end point
*/
Delivered : 2,
/**
* Message was not delivered
*/
NotDelivered : 3,
/**
* Message was received(and acknowledged) but cannot get file from server
*/
FileTransferError : 4,
/**
* File transfer has been completed successfully.
*/
FileTransferDone : 5
};
/**
* Get the name of a value of the ChatMessageState enum as a string.
* @function linphone#getChatMessageStateText
* @param { number } value - One of the values of the ChatMessageState enum.
**/
linphone.getChatMessageStateText = function(value) {
switch (value) {
case linphone.ChatMessageState.Idle:
return "Idle";
case linphone.ChatMessageState.InProgress:
return "InProgress";
case linphone.ChatMessageState.Delivered:
return "Delivered";
case linphone.ChatMessageState.NotDelivered:
return "NotDelivered";
case linphone.ChatMessageState.FileTransferError:
return "FileTransferError";
case linphone.ChatMessageState.FileTransferDone:
return "FileTransferDone";
default:
return "?";
}
};