[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/manager/event MessageWaitingEvent.ja
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-08-27 03:33:42
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2693/src/java/net/sf/asterisk/manager/event Modified Files: MessageWaitingEvent.java Log Message: Added new and old attributes Index: MessageWaitingEvent.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event/MessageWaitingEvent.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -p -r1.2 -r1.3 --- MessageWaitingEvent.java 23 Feb 2005 22:50:58 -0000 1.2 +++ MessageWaitingEvent.java 27 Aug 2005 03:33:34 -0000 1.3 @@ -31,6 +31,8 @@ public class MessageWaitingEvent extends private static final long serialVersionUID = 7014587245968686266L; private String mailbox; private Integer waiting; + private Integer newMessages; + private Integer oldMessages; /** * @param source @@ -42,7 +44,8 @@ public class MessageWaitingEvent extends /** * Returns the name of the mailbox that has waiting messages.<br> - * The name of the mailbox is of the form numberOfMailbox@context, e.g. 1234@default. + * The name of the mailbox is of the form numberOfMailbox@context, e.g. + * 1234@default. * * @return the name of the mailbox that has waiting messages */ @@ -80,4 +83,44 @@ public class MessageWaitingEvent extends { this.waiting = waiting; } + + /** + * Returns the number of new messages in this mailbox. + * @return the number of new messages in this mailbox. + * @since 0.2 + */ + public Integer getNew() + { + return newMessages; + } + + /** + * Sets the number of new messages in this mailbox. + * @param newMessages the number of new messages in this mailbox. + * @since 0.2 + */ + public void setNew(Integer newMessages) + { + this.newMessages = newMessages; + } + + /** + * Returns the number of old messages in this mailbox. + * @return the number of old messages in this mailbox. + * @since 0.2 + */ + public Integer getOld() + { + return oldMessages; + } + + /** + * Sets the number of old messages in this mailbox. + * @param oldMessages the number of old messages in this mailbox. + * @since 0.2 + */ + public void setOld(Integer oldMessages) + { + this.oldMessages = oldMessages; + } } |