[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/manager/response MailboxStatusRespon
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-03-01 19:27:25
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26470/src/java/net/sf/asterisk/manager/response Modified Files: MailboxStatusResponse.java Log Message: Changed type of waiting to Boolean Index: MailboxStatusResponse.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/response/MailboxStatusResponse.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -p -r1.2 -r1.3 --- MailboxStatusResponse.java 23 Feb 2005 22:50:58 -0000 1.2 +++ MailboxStatusResponse.java 1 Mar 2005 19:27:00 -0000 1.3 @@ -17,8 +17,8 @@ package net.sf.asterisk.manager.response; /** - * A MailboxStatusResponse is sent in response to a MailboxStatusAction and indicates if a mailbox - * contains waiting messages. + * A MailboxStatusResponse is sent in response to a MailboxStatusAction and indicates if a set + * of mailboxes contains waiting messages. * * @see net.sf.asterisk.manager.action.MailboxStatusAction * @@ -31,11 +31,20 @@ public class MailboxStatusResponse exten * Serial version identifier */ private static final long serialVersionUID = -7193581424292429279L; + + /** + * The name of the mailbox. + */ private String mailbox; - private Integer waiting; + + /** + * Indicates if there are new messages waiting in the given set of mailboxes. + */ + private Boolean waiting; /** - * Returns the name of the mailbox. + * Returns the names of the mailboxes, separated by ",". + * @return the names of the mailbox. */ public String getMailbox() { @@ -43,7 +52,8 @@ public class MailboxStatusResponse exten } /** - * Sets the name of the mailbox. + * Sets the names of the mailboxes. + * @param mailbox the names of the mailboxes. */ public void setMailbox(String mailbox) { @@ -51,17 +61,19 @@ public class MailboxStatusResponse exten } /** - * Returns 1 if the mailbox has waiting messages; 0 otherwise. + * Returns Boolean.TRUE if at least one of the given mailboxes contains new messages; + * Boolean.FALSE otherwise. */ - public Integer getWaiting() + public Boolean getWaiting() { return waiting; } /** - * Set to 1 if the mailbox has waiting messages; 0 otherwise. + * Set to Boolean.TRUE if at least one of the mailboxes contains new messages; + * Boolean.FALSE otherwise. */ - public void setWaiting(Integer waiting) + public void setWaiting(Boolean waiting) { this.waiting = waiting; } |