Class PhoneCall
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.messaging.PhoneCall
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class PhoneCall extends ComplexProperty
Represents a phone call.
-
-
Constructor Summary
Constructors Modifier Constructor Description PhoneCall(ExchangeService service)PhoneCall Constructor.protectedPhoneCall(ExchangeService service, PhoneCallId id)PhoneCall Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisconnect()Disconnects this phone call.ConnectionFailureCausegetConnectionFailureCause()Gets a value indicating the reason why this phone call failed to connect.intgetSipResponseCode()Gets the SIP response code of this phone call.StringgetSipResponseText()Gets the SIP response text of this phone call.PhoneCallStategetState()Gets a value indicating the last known state of this phone call.voidrefresh()Refreshes the state of this phone call.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read an element from XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
PhoneCall
public PhoneCall(ExchangeService service)
PhoneCall Constructor.- Parameters:
service- the service
-
PhoneCall
protected PhoneCall(ExchangeService service, PhoneCallId id)
PhoneCall Constructor.- Parameters:
service- the serviceid- the id
-
-
Method Detail
-
refresh
public void refresh() throws Exception
Refreshes the state of this phone call.- Throws:
Exception- the exception
-
disconnect
public void disconnect() throws Exception
Disconnects this phone call.- Throws:
Exception- the exception
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read an element from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- the reader- Returns:
- True if element was read.
- Throws:
Exception- the exception
-
getState
public PhoneCallState getState()
Gets a value indicating the last known state of this phone call.- Returns:
- the state
-
getSipResponseText
public 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
-
-