Asterisk-Java

org.asteriskjava.live
Class Voicemailbox

java.lang.Object
  extended by org.asteriskjava.live.Voicemailbox
All Implemented Interfaces:
java.io.Serializable

public class Voicemailbox
extends java.lang.Object
implements java.io.Serializable

An Asterisk voicemailbox with status.

Since:
0.3
Version:
$Id: Voicemailbox.java 961 2008-02-03 02:53:56Z srt $
Author:
srt
See Also:
Serialized Form

Constructor Summary
Voicemailbox(java.lang.String mailbox, java.lang.String context, java.lang.String user)
          Creates a new instance.
 
Method Summary
 java.lang.String getContext()
          Returns the context of this mailbox as defined in voicemail.conf.
 java.lang.String getMailbox()
          Returns the name of this mailbox as defined in voicemail.conf.
 int getNewMessages()
          Returns the number of new messages.
 int getOldMessages()
          Returns the number of old messages.
 java.lang.String getUser()
          Returns the user (usually the full name) of this mailbox as defined in voicemail.conf.
 void setNewMessages(int newMessages)
          Sets the number of new messages.
 void setOldMessages(int oldMessages)
          Sets the number of old messages.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Voicemailbox

public Voicemailbox(java.lang.String mailbox,
                    java.lang.String context,
                    java.lang.String user)
Creates a new instance.

Parameters:
mailbox - the name of this mailbox as defined in voicemail.conf.
context - the context of this mailbox as defined in voicemail.conf.
user - the user of this mailbox as defined in voicemail.conf.
Method Detail

getMailbox

public java.lang.String getMailbox()
Returns the name of this mailbox as defined in voicemail.conf.

Returns:
the name of this mailbox as defined in voicemail.conf.

getContext

public java.lang.String getContext()
Returns the context of this mailbox as defined in voicemail.conf.

Returns:
the context of this mailbox as defined in voicemail.conf.

getUser

public java.lang.String getUser()
Returns the user (usually the full name) of this mailbox as defined in voicemail.conf.

Returns:
the user of this mailbox as defined in voicemail.conf.

getNewMessages

public int getNewMessages()
Returns the number of new messages.

Returns:
the number of new messages.

setNewMessages

public void setNewMessages(int newMessages)
Sets the number of new messages.

Parameters:
newMessages - the number of new messages.

getOldMessages

public int getOldMessages()
Returns the number of old messages.

Returns:
the number of old messages.

setOldMessages

public void setOldMessages(int oldMessages)
Sets the number of old messages.

Parameters:
oldMessages - the number of old messages.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.