|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.voiceclearly.api.model.Call
public class Call
The Call class represents a Google Talk voice call and includes information such as the other particpant in the call, the call direction, call state, and the duration of the call if it is in active state.
| Field Summary | |
|---|---|
static int |
CALL_DIRECTION_INBOUND
Call Direction of inbound represents a call arriving from another participant |
static int |
CALL_DIRECTION_OUTBOUND
Call Direction of outbound represents a call that has been initiated by the client |
static int |
CALL_STATE_ACTIVE
Call State when a Google Talk voice call is active |
static int |
CALL_STATE_DISCONNECTED
Call State when a Google Talk voice call has ended. |
static int |
CALL_STATE_ERROR
Call State when an error has occurred in a Google Talk voice call |
static int |
CALL_STATE_INCOMING
Call State when a an inbound Google Talk voice call has arrived |
static int |
CALL_STATE_OUTGOING
Call State when an outbound Google Talk voice call has been made |
static int |
CALL_STATE_READY
Call State when the voice service is available and ready to take a ca.. |
| Constructor Summary | |
|---|---|
Call()
Class constructor for a Call |
|
Call(java.lang.String participant,
int callDirection)
Class constructor that includes the particpant (the other party in the call) and the call direction of either CALL_DIRECTION_OUTBOUND or CALL_DIRECTION_INBOUND |
|
| Method Summary | |
|---|---|
int |
getCallDirection()
Retrieves the call direction either inbound or outbound |
int |
getCallState()
Retrieves the call state |
long |
getDuration()
Retrieves the call duration |
java.lang.String |
getParticipant()
The other party (participant) in the call. |
java.lang.String |
getSessionId()
Returns the current call session id |
void |
setCallDirection(int callDirection)
Sets the call direction either inbound or outbound |
void |
setCallState(int callState)
Sets the call state |
void |
setParticipant(java.lang.String participant)
Sets the other party in the call |
void |
setSessionId(java.lang.String sessionId)
Sets the session id for the call, typically same as the jingle session id |
void |
startCall()
Marks the start of a voice call |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CALL_STATE_READY
public static final int CALL_STATE_INCOMING
public static final int CALL_STATE_OUTGOING
public static final int CALL_STATE_ACTIVE
public static final int CALL_STATE_DISCONNECTED
public static final int CALL_STATE_ERROR
public static final int CALL_DIRECTION_INBOUND
public static final int CALL_DIRECTION_OUTBOUND
| Constructor Detail |
|---|
public Call(java.lang.String participant,
int callDirection)
participant - callDirection - public Call()
| Method Detail |
|---|
public void startCall()
public long getDuration()
public java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
sessionId - the sessionId to setpublic int getCallDirection()
public void setCallDirection(int callDirection)
callDirection - the callDirection to setpublic int getCallState()
public void setCallState(int callState)
callState - the callState to setpublic java.lang.String getParticipant()
public void setParticipant(java.lang.String participant)
participant - the participant to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||