mirror of https://github.com/sipwise/jitsi.git
Renames occurrences of callParticipant to callPeer so that it would better reflect our new Call architecture that also includes conferencing and ConferenceMembers
parent
756b2a847b
commit
ef884edaec
@ -1,86 +0,0 @@
|
||||
/*
|
||||
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
|
||||
*
|
||||
* Distributable under LGPL license.
|
||||
* See terms of license at gnu.org.
|
||||
*/
|
||||
package net.java.sip.communicator.impl.gui.main.call;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import net.java.sip.communicator.service.callhistory.*;
|
||||
import net.java.sip.communicator.util.*;
|
||||
|
||||
/**
|
||||
* The <tt>GuiCallParticipantRecord</tt> is meant to be used in the call history
|
||||
* to represent a history call participant record. It wraps a
|
||||
* <tt>CallParticipant</tt> or a <tt>CallParticipantRecord</tt> object.
|
||||
*
|
||||
* @author Yana Stamcheva
|
||||
*/
|
||||
public class GuiCallParticipantRecord
|
||||
{
|
||||
public static final String INCOMING_CALL = "IncomingCall";
|
||||
|
||||
public static final String OUTGOING_CALL = "OutgoingCall";
|
||||
|
||||
private String direction;
|
||||
|
||||
private String participantName;
|
||||
|
||||
private Date startTime;
|
||||
|
||||
private Date callDuration;
|
||||
|
||||
public GuiCallParticipantRecord(String participantName,
|
||||
String direction,
|
||||
Date startTime,
|
||||
Date callDuration)
|
||||
{
|
||||
this.direction = direction;
|
||||
|
||||
this.participantName = participantName;
|
||||
|
||||
this.startTime = startTime;
|
||||
|
||||
this.callDuration = callDuration;
|
||||
}
|
||||
|
||||
public GuiCallParticipantRecord(CallPeerRecord participantRecord,
|
||||
String direction)
|
||||
{
|
||||
this.direction = direction;
|
||||
|
||||
this.participantName = participantRecord.getPeerAddress();
|
||||
|
||||
this.startTime = participantRecord.getStartTime();
|
||||
|
||||
this.callDuration = GuiUtils.substractDates(
|
||||
participantRecord.getEndTime(), startTime);
|
||||
}
|
||||
|
||||
public String getDirection()
|
||||
{
|
||||
return direction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the duration of the contained participant call.
|
||||
*
|
||||
* @return the duration of the contained participant call
|
||||
*/
|
||||
public Date getDuration()
|
||||
{
|
||||
return callDuration;
|
||||
}
|
||||
|
||||
public String getParticipantName()
|
||||
{
|
||||
return participantName;
|
||||
}
|
||||
|
||||
public Date getStartTime()
|
||||
{
|
||||
return startTime;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue