|
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(java.lang.Object source)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getMailbox()
Returns the name of the mailbox that has waiting messages. |
java.lang.Integer |
getNew()
Returns the number of new messages in this mailbox. |
java.lang.Integer |
getOld()
Returns the number of old messages in this mailbox. |
java.lang.Integer |
getWaiting()
Returns the number of new messages in the mailbox. |
void |
setMailbox(java.lang.String mailbox)
Sets the name of the mailbox that has waiting messages. |
void |
setNew(java.lang.Integer newMessages)
Sets the number of new messages in this mailbox. |
void |
setOld(java.lang.Integer oldMessages)
Sets the number of old messages in this mailbox. |
void |
setWaiting(java.lang.Integer waiting)
Sets the number of new messages in the mailbox. |
| Methods inherited from class org.asteriskjava.manager.event.ManagerEvent |
|---|
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, 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(java.lang.Object source)
source - | Method Detail |
|---|
public java.lang.String getMailbox()
The name of the mailbox is of the form numberOfMailbox@context, e.g. 1234@default.
public void setMailbox(java.lang.String mailbox)
mailbox - the name of the mailbox that has waiting messagespublic java.lang.Integer getWaiting()
public void setWaiting(java.lang.Integer waiting)
waiting - the number of new messages in the mailboxpublic java.lang.Integer getNew()
public void setNew(java.lang.Integer newMessages)
newMessages - the number of new messages in this mailbox.public java.lang.Integer getOld()
public void setOld(java.lang.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 | |||||||||