public final class ResponseMessage extends ResponseObject<EmailMessage>
Constructor and Description |
---|
ResponseMessage(Item referenceItem,
ResponseMessageType responseType)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
EmailAddressCollection |
getBccRecipients()
Gets a list of recipients the response will be sent to as Cc.
|
MessageBody |
getBody()
Gets the body of the response.
|
MessageBody |
getBodyPrefix()
Gets the body prefix of this response.
|
EmailAddressCollection |
getCcRecipients()
Gets a list of recipients the response will be sent to as Cc.
|
ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version.
|
ResponseMessageType |
getResponseType()
Gets a value indicating the type of response this object represents.
|
ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object.
|
String |
getSubject()
Gets the subject of this response.
|
EmailAddressCollection |
getToRecipients()
Gets a list of recipients the response will be sent to.
|
protected String |
getXmlElementNameOverride()
This methods lets subclasses of ServiceObject override the default
mechanism by which the XML element name associated with their type is
retrieved.
|
void |
setBody(MessageBody value)
Sets the body.
|
void |
setBodyPrefix(MessageBody value)
Sets the body prefix.
|
void |
setSubject(String value)
Sets the subject.
|
internalCreate, internalDelete, internalLoad, save, save, save, send, sendAndSaveCopy, sendAndSaveCopy, sendAndSaveCopy
addServiceObjectChangedEvent, changed, clearChangeLog, clearServiceObjectChangedEvent, getChangeXmlElementName, getDeleteFieldXmlElementName, getExtendedProperties, getId, getIdPropertyDefinition, getIsCustomDateTimeScopingRequired, getIsTimeZoneHeaderRequired, getLoadedPropertyDefinitions, getObjectFromPropertyDefinition, getPropertyBag, getService, getSetFieldXmlElementName, getXmlElementName, isDirty, isNew, load, load, loadFromXml, loadFromXml, removeServiceObjectChangedEvent, schema, setService, throwIfThisIsNew, throwIfThisIsNotNew, tryGetExtendedProperty, tryGetProperty, tryGetProperty, validate, writeToXml, writeToXmlForUpdate
public ResponseMessage(Item referenceItem, ResponseMessageType responseType) throws Exception
referenceItem
- the reference itemresponseType
- the response typeException
- the exceptionpublic ServiceObjectSchema getSchema()
getSchema
in class ResponseObject<EmailMessage>
public ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceObject
protected String getXmlElementNameOverride()
getXmlElementNameOverride
in class ServiceObject
public ResponseMessageType getResponseType()
public MessageBody getBody() throws Exception
Exception
- the exceptionpublic void setBody(MessageBody value) throws Exception
value
- the new bodyException
- the exceptionpublic EmailAddressCollection getToRecipients() throws Exception
Exception
- the exceptionpublic EmailAddressCollection getCcRecipients() throws Exception
Exception
- the exceptionpublic EmailAddressCollection getBccRecipients() throws Exception
Exception
- the exceptionpublic String getSubject() throws Exception
Exception
- the exceptionpublic void setSubject(String value) throws Exception
value
- the new subjectException
- the exceptionpublic MessageBody getBodyPrefix() throws Exception
Exception
- the exceptionpublic void setBodyPrefix(MessageBody value) throws Exception
value
- the new body prefixException
- the exceptionCopyright © 2012–2015 Microsoft. All rights reserved.