new MessageSummary()
Extended from the Notification class. Created by MessageAlertPackage when a notification of the event type message-summary is received.
Methods
-
getMessageAccount() → {String}
-
Gets the message account associated with the current message summary notification.
Returns:
Message account associated with the current message summary notification
- Type
- String
-
getMessageCounts(msgClassType) → {Object}
-
gets the message counts
Parameters:
Name Type Description msgClassType
String String to indicate the message class type, such as "voicemessage".
This message class type corresponds to the SIP notification message class type. It is the lower case style and all "-" are replaced by "" of the message class type in the SIP notification.
For example, if there is a field "Voice-message" in the SIP notification from the SIP application, the client side web application should use "voice_message" as the parameter when calling this function to get the message count information.Returns:
MessageCounts contains the message count information of the message class type in the parameter.
For example, if wsc.MessageSummary.getMessageCounts("voice_message") is called, an object containing the message count of "voice_message" is returned. Likewise, if "fax_message" is passed as a parameter, the returned object contains the message count of "fax_message".- Type
- Object
-
isMessageWaiting() → {boolean}
-
Return the waiting message status.
Returns:
If there is message waiting, return true, otherwise false.
- Type
- boolean