net.sf.asterisk.manager
Class Call

java.lang.Object
  extended by net.sf.asterisk.manager.Call

public class Call
extends java.lang.Object

Author:
Ben Hencke

Constructor Summary
Call()
           
 
Method Summary
 long calcDuration()
           
 Channel getChannel()
           
 java.util.Date getEndTime()
           
 java.lang.Integer getReason()
           
 java.util.Date getStartTime()
           
 java.lang.String getUniqueId()
           
 void setChannel(Channel channel)
           
 void setEndTime(java.util.Date endTime)
           
 void setReason(java.lang.Integer reason)
           
 void setStartTime(java.util.Date startTime)
           
 void setUniqueId(java.lang.String uniqueId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Call

public Call()
Method Detail

getUniqueId

public java.lang.String getUniqueId()

setUniqueId

public void setUniqueId(java.lang.String uniqueId)

getChannel

public Channel getChannel()

setChannel

public void setChannel(Channel channel)

getReason

public java.lang.Integer getReason()

setReason

public void setReason(java.lang.Integer reason)

getStartTime

public java.util.Date getStartTime()

setStartTime

public void setStartTime(java.util.Date startTime)

getEndTime

public java.util.Date getEndTime()

setEndTime

public void setEndTime(java.util.Date endTime)

calcDuration

public long calcDuration()
Returns:
The duration of the call in milliseconds. If the call is has not ended, the duration so far is calculated.

toString

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


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