public class CallRecord
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
direction
Indicates the direction of the call - IN or OUT.
|
protected int |
endReason
This is the end reason of the call if any.
|
protected java.util.Date |
endTime
The end call date.
|
static java.lang.String |
IN
The incoming call direction.
|
static java.lang.String |
OUT
The outgoing call direction.
|
protected java.util.List<CallPeerRecord> |
peerRecords
A list of all peer records corresponding to this call record.
|
protected ProtocolProviderService |
protocolProvider
The protocol provider through which the call was made.
|
protected java.util.Date |
startTime
The start call date.
|
Constructor and Description |
---|
CallRecord()
Creates CallRecord
|
CallRecord(java.lang.String direction,
java.util.Date startTime,
java.util.Date endTime)
Creates Call Record
|
Modifier and Type | Method and Description |
---|---|
CallPeerRecord |
findPeerRecord(java.lang.String address)
Finds a CallPeer with the supplied address
|
java.lang.String |
getDirection()
Returns the direction of the call
IN or OUT
|
int |
getEndReason()
This is the end reason of the call if any.
|
java.util.Date |
getEndTime()
Returns the time when the call has finished
|
java.util.List<CallPeerRecord> |
getPeerRecords()
Return Vector of CallPeerRecords
|
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider used for the call.
|
java.util.Date |
getStartTime()
The time when the call has began
|
public static final java.lang.String OUT
public static final java.lang.String IN
protected java.lang.String direction
protected final java.util.List<CallPeerRecord> peerRecords
protected java.util.Date startTime
protected java.util.Date endTime
protected ProtocolProviderService protocolProvider
protected int endReason
public CallRecord()
public CallRecord(java.lang.String direction, java.util.Date startTime, java.util.Date endTime)
direction
- StringstartTime
- DateendTime
- Datepublic CallPeerRecord findPeerRecord(java.lang.String address)
address
- Stringpublic java.lang.String getDirection()
public java.util.Date getEndTime()
public java.util.List<CallPeerRecord> getPeerRecords()
public java.util.Date getStartTime()
public ProtocolProviderService getProtocolProvider()
public int getEndReason()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.