Package org.linphone.core
Interface MessageWaitingIndication
public interface MessageWaitingIndication
Object representing a Message Waiting Indication.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionclone()Instantiate a new message waiting indication with values from source.Gets the address of the message account concerned by this message waiting
indication.longGets the native pointer used by this class to make native method calls.intgetNbNew()Gets the total number of new messages (for all the summaries).intGets the total number of new urgent messages (for all the summaries).intgetNbOld()Gets the total number of old messages (for all the summaries).intGets the total number of old urgent messages (for all the summaries).Gets the message waiting indication summaries.getSummary(MessageWaitingIndication.ContextClass contextClass) Gets the message waiting indication summary for a given context class.Gets the object stored in this object user's databooleanTells whether there are messages waiting or not.voidsetAccountAddress(Address address) Sets the address of the message account concerned by this message waiting
indication.voidsetUserData(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getAccountAddress
Gets the address of the message account concerned by this message waiting
indication.
- Returns:
- The address of the message account concerned by this message waiting
indication.
-
setAccountAddress
Sets the address of the message account concerned by this message waiting
indication.
- Parameters:
address- The address of the message account concerned by this message
waiting indication.
-
getNbNew
int getNbNew()Gets the total number of new messages (for all the summaries).
- Returns:
- The total number of new messages.
-
getNbNewUrgent
int getNbNewUrgent()Gets the total number of new urgent messages (for all the summaries).
- Returns:
- The total number of new urgent messages.
-
getNbOld
int getNbOld()Gets the total number of old messages (for all the summaries).
- Returns:
- The total number of old messages.
-
getNbOldUrgent
int getNbOldUrgent()Gets the total number of old urgent messages (for all the summaries).
- Returns:
- The total number of old urgent messages.
-
getSummaries
Gets the message waiting indication summaries.
- Returns:
- The message waiting indication summaries.
-
clone
Instantiate a new message waiting indication with values from source.
- Returns:
- The newly created
MessageWaitingIndicationobject.
-
getSummary
@Nullable MessageWaitingIndicationSummary getSummary(MessageWaitingIndication.ContextClass contextClass) Gets the message waiting indication summary for a given context class.
- Parameters:
contextClass- theMessageWaitingIndication.ContextClassfor which we want to get the
summary.- Returns:
- The
MessageWaitingIndicationSummaryfor the given context
class.
-
hasMessageWaiting
boolean hasMessageWaiting()Tells whether there are messages waiting or not.
- Returns:
- true if there are waiting messages, false otherwise.
-
toContent
- Returns:
- The
Contentto put in a NOTIFY message.
-
setUserData
Sets the object to store in this object user's data- Parameters:
data- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-