microsoft.exchange.webservices.data
Class PhoneCall

java.lang.Object
  extended by microsoft.exchange.webservices.data.ComplexProperty
      extended by microsoft.exchange.webservices.data.PhoneCall

public final class PhoneCall
extends ComplexProperty

Represents a phone call.


Constructor Summary
protected PhoneCall(ExchangeService service)
          PhoneCall Constructor.
protected PhoneCall(ExchangeService service, microsoft.exchange.webservices.data.PhoneCallId id)
          PhoneCall Constructor.
 
Method Summary
 void disconnect()
          Disconnects this phone call.
 ConnectionFailureCause getConnectionFailureCause()
          Gets a value indicating the reason why this phone call failed to connect.
 int getSipResponseCode()
          Gets the SIP response code of this phone call.
 java.lang.String getSipResponseText()
          Gets the SIP response text of this phone call.
 PhoneCallState getState()
          Gets a value indicating the last known state of this phone call.
 void refresh()
          Refreshes the state of this phone call.
protected  boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Tries to read an element from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneCall

protected PhoneCall(ExchangeService service)
PhoneCall Constructor.

Parameters:
service - the service

PhoneCall

protected PhoneCall(ExchangeService service,
                    microsoft.exchange.webservices.data.PhoneCallId id)
PhoneCall Constructor.

Parameters:
service - the service
id - the id
Method Detail

refresh

public void refresh()
             throws java.lang.Exception
Refreshes the state of this phone call.

Throws:
java.lang.Exception - the exception

disconnect

public void disconnect()
                throws java.lang.Exception
Disconnects this phone call.

Throws:
java.lang.Exception - the exception

tryReadElementFromXml

protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                                 throws java.lang.Exception
Tries to read an element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - the reader
Returns:
True if element was read.
Throws:
java.lang.Exception - the exception

getState

public PhoneCallState getState()
Gets a value indicating the last known state of this phone call.

Returns:
the state

getSipResponseText

public java.lang.String getSipResponseText()
Gets the SIP response text of this phone call.

Returns:
the sip response text

getSipResponseCode

public int getSipResponseCode()
Gets the SIP response code of this phone call.

Returns:
the sip response code

getConnectionFailureCause

public ConnectionFailureCause getConnectionFailureCause()
Gets a value indicating the reason why this phone call failed to connect.

Returns:
the connection failure cause