|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.MessageWaitingEvent
public class MessageWaitingEvent
A MessageWaitingEvent is triggered when someone leaves voicemail.
It is implemented in apps/app_voicemail.c
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
MessageWaitingEvent(Object source)
|
|
| Method Summary | |
|---|---|
String |
getMailbox()
Returns the name of the mailbox that has waiting messages. |
Integer |
getNew()
Returns the number of new messages in this mailbox. |
Integer |
getOld()
Returns the number of old messages in this mailbox. |
Integer |
getWaiting()
Returns the number of new messages in the mailbox. |
void |
setMailbox(String mailbox)
Sets the name of the mailbox that has waiting messages. |
void |
setNew(Integer newMessages)
Sets the number of new messages in this mailbox. |
void |
setOld(Integer oldMessages)
Sets the number of old messages in this mailbox. |
void |
setWaiting(Integer waiting)
Sets the number of new messages in the mailbox. |
| Methods inherited from class org.asteriskjava.manager.event.ManagerEvent |
|---|
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toString |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MessageWaitingEvent(Object source)
source - | Method Detail |
|---|
public String getMailbox()
The name of the mailbox is of the form numberOfMailbox@context, e.g. 1234@default.
public void setMailbox(String mailbox)
mailbox - the name of the mailbox that has waiting messagespublic Integer getWaiting()
public void setWaiting(Integer waiting)
waiting - the number of new messages in the mailboxpublic Integer getNew()
public void setNew(Integer newMessages)
newMessages - the number of new messages in this mailbox.public Integer getOld()
public void setOld(Integer oldMessages)
oldMessages - the number of old messages in this mailbox.
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||