Avaya Client Services API Reference (iOS)
|
Interface for all Message related tasks and properties. More...
#import <CSMessage.h>
Inherits NSObject.
Instance Methods | |
(void) | - sendWithCompletionHandler: |
Invokes a send request for this message. More... | |
(void) | - setBodyAndReportTyping:completionHandler: |
Sets the body of the draft message and the "is typing" chat state. More... | |
(void) | - reportTyping: |
Sets or clears the "is typing" chat state. More... | |
(void) | - setInReplyTo:completionHandler: |
Sets the in-reply-to message for draft message. More... | |
(void) | - getInReplyToMessageWithCompletionHandler: |
Gets the in-reply-to message of this message. More... | |
(void) | - getDeliveryDetailsWithCompletionHandler: |
Gets MessageDeliveryDetails or error. More... | |
(void) | - setDoNotForward:completionHandler: |
Sets the do-not-forward state for the message. More... | |
(void) | - setImportance:completionHandler: |
Sets the importance of the message. More... | |
(void) | - markAsRead |
Marks this message as read. More... | |
(CSMessagingAttachment *) | - createAttachment |
Creates a CSMessagingAttachment for this message. More... | |
(void) | - removeAttachment:completionHandler: |
Removes a specified attachment from this message. More... | |
Properties | |
id< CSMessageDelegate > | delegate |
The delegate responsible for handling message-related events. More... | |
NSString * | messageId |
The unique message identifier. More... | |
NSString * | providerMessageId |
This is the message ID from the underlying provider (e.g., the AMM server) as-is. More... | |
CSMessagingType | type |
The message type. More... | |
CSMessagingReasonType | reasonType |
Message reason type (specific to CSMessagingTypeClosed and CSMessagingTypeLeft message types) More... | |
CSMessagingProviderType | providerType |
The messaging provider type (AMM, Zang). More... | |
CSMessagingMessageStatus | status |
The message status. More... | |
NSString * | subject |
The subject of the conversation at the time the message was sent. More... | |
NSString * | body |
The body of the message. More... | |
NSString * | htmlBody |
* The HTML body of the message. More... | |
BOOL | hasHtmlBody |
Flag indicating if the message contains HTML body. More... | |
NSString * | conversationId |
The unique identifier of the conversation to which this message belongs. More... | |
NSDate * | lastModifiedDate |
The date and time that the message was last modified. More... | |
NSDate * | receivedDate |
The date and time that the message was received. More... | |
BOOL | coalesced |
Returns the coalesced status of the message, which is defining if two consecutive messages can be merged. More... | |
BOOL | fromMe |
A Boolean value indicating whether the current user is the sender of the message. More... | |
BOOL | hasAttachment |
A Boolean value indicating if the message has one or more attachments. More... | |
BOOL | hasUnreadAttachment |
A Boolean value indicating if the message has a least one attachment that has not been viewed. More... | |
BOOL | hasInReplyTo |
A Boolean value indicating if the message has an in-reply-to message (does not mean it is in cache). More... | |
BOOL | privateMessage |
A Boolean value indicating if the message is marked as a private message. More... | |
BOOL | doNotForward |
The do-not-forward status of the message, which indicates if the sender of this message had disallowed forwarding of this particular message. More... | |
BOOL | read |
A Boolean value indicating if the message has been read. More... | |
CSMessagingMessageReadState | readState |
Get message Read state. More... | |
CSMessagingMessageDeliveryState | deliveryState |
The message delivery state describing whether this message is sent or delivered to one or more recipients. More... | |
CSMessagingParticipant * | fromParticipant |
The participant who sent the message. More... | |
NSArray * | attachments |
The attachments for this message. More... | |
CSMessagingImportance | importance |
The message importance. More... | |
CSMessagingSensitivityLevel | sensitivity |
The message sensitivity. More... | |
NSArray * | addedParticipants |
When the message type is CSMessagingTypeJoined, this property returns the list of participants that were added to the conversation. More... | |
NSArray * | removedParticipants |
When the message type is CSMessagingTypeLeft, this property returns the list of participants that were removed from the conversation. More... | |
NSArray * | recipients |
The list of participants, including the sender, that the message was sent to. More... | |
CSCapability * | updateBodyCapability |
Returns a CSCapability object that indicates if the body text or "is typing" status of the message can be updated. More... | |
CSCapability * | updateInReplyToCapability |
Returns a CSCapability object that indicates if the in-reply-to attribute of the message can be updated. More... | |
CSCapability * | updateDoNotForwardCapability |
Returns a CSCapability object that indicates if the DoNotForward attribute of the message can be updated. More... | |
CSCapability * | updateImportanceCapability |
Returns a CSCapability object that indicates if the importance attribute of the message can be updated. More... | |
CSCapability * | createAttachmentCapability |
Returns a CSCapability object that indicates if an attachment can be added to the message. More... | |
CSCapability * | sendCapability |
Returns a CSCapability object that indicates if the message can be sent. More... | |
CSCapability * | markAsReadCapability |
Returns a CSCapability object that indicates if the message can be marked as read. More... | |
CSCapability * | removeCapability |
Returns a CSCapability object that indicates if the message can be removed. More... | |
CSCapability * | deliveryDetailsCapability |
Returns a CSCapability object that indicates if the message can provide its delivery details. More... | |
CSMessagingParticipant * | initiatorParticipant |
The participant is the initiator of an event message, such as LEFT message when a participant is removed from a conversation by other participant(initiator) More... | |
Interface for all Message related tasks and properties.
Message is a crucial part of the conversation. It can store not only text content or attachments, but is also used to inform about any event that occurred in the conversation, like a new participant or subject change. It is important to notice that the body cannot be empty for a usual message, unless an attachment is present.
To create a new message, call the -[CSMessagingConversation createMessage] method, which will return a new object. After filling out the message and its other parameters, use the sendWithCompletionHandler: operation in order to send a message.
An important part of the message is also attachments. In order to create a new attachment in a message object, use the createAttachment method.
Besides normal messages with text body there are also messages informing about events. CSMessagingType is informing about an event type and these objects do not contain any text body. They can have some additional data about an event, i.e. addedParticipants, removedParticipants, etc.
- (CSMessagingAttachment *) createAttachment |
Creates a CSMessagingAttachment for this message.
- (void) getDeliveryDetailsWithCompletionHandler: | (CSMessagingMessageDeliveryDetailsCompletionHandler) | handler |
Gets MessageDeliveryDetails or error.
Delivery details are returned via completion handler.
handler | The completion handler associated with this operation. |
- (void) getInReplyToMessageWithCompletionHandler: | (CSMessagingMessageCompletionHandler) | handler |
Gets the in-reply-to message of this message.
handler | The completion handler associated with this operation. |
- (void) markAsRead |
Marks this message as read.
- (void) removeAttachment: | (CSMessagingAttachment *) | attachment | |
completionHandler: | (CSMessagingCompletionHandler) | handler | |
Removes a specified attachment from this message.
attachment | The CSMessagingAttachment to remove from the message. |
handler | The completion handler associated with this operation. |
- (void) reportTyping: | (BOOL) | typing |
Sets or clears the "is typing" chat state.
This is a "fire and forget" operation.
typing | YES to indicate that the user is typing, NO if not. |
- (void) sendWithCompletionHandler: | (CSMessagingCompletionHandler) | handler |
Invokes a send request for this message.
handler | The completion handler for this operation. |
- (void) setBodyAndReportTyping: | (NSString *) | messageBody | |
completionHandler: | (CSMessagingCompletionHandler) | handler | |
Sets the body of the draft message and the "is typing" chat state.
Client application having HTML capability can set messageBody with text in HTML format.
messageBody | The body of the message. |
handler | The completion handler associated with this operation. |
- (void) setDoNotForward: | (BOOL) | doNotForward | |
completionHandler: | (CSMessagingCompletionHandler) | handler | |
Sets the do-not-forward state for the message.
doNotForward | The new do-not-forward status of the message. |
handler | The completion handler associated with this operation. |
- (void) setImportance: | (CSMessagingImportance) | importance | |
completionHandler: | (CSMessagingCompletionHandler) | handler | |
Sets the importance of the message.
importance | The new importance of the message. |
handler | The completion handler associated with this operation. |
- (void) setInReplyTo: | (CSMessage *) | inReplyToMessage | |
completionHandler: | (CSMessagingCompletionHandler) | handler | |
Sets the in-reply-to message for draft message.
inReplyToMessage | The in-reply-to message of this draft message. |
handler | The completion handler associated with this operation. |
|
readnonatomicassign |
When the message type is CSMessagingTypeJoined, this property returns the list of participants that were added to the conversation.
Property of incoming messages only.
|
readnonatomicassign |
The attachments for this message.
|
readnonatomicassign |
The body of the message.
|
readnonatomicassign |
Returns the coalesced status of the message, which is defining if two consecutive messages can be merged.
Message is coalesced if:
|
readnonatomicassign |
The unique identifier of the conversation to which this message belongs.
|
readnonatomicassign |
Returns a CSCapability object that indicates if an attachment can be added to the message.
This capability is Allowed when the Message has not yet been sent, or a send failure has occurred.
|
readwritenonatomicweak |
The delegate responsible for handling message-related events.
|
readnonatomicassign |
Returns a CSCapability object that indicates if the message can provide its delivery details.
|
readnonatomicassign |
The message delivery state describing whether this message is sent or delivered to one or more recipients.
Delivery state will not update from Sent to Delivered in case MessageDeliveryReadStateMonitoring is disabled or not supported by messaging server.
|
readnonatomicassign |
The do-not-forward status of the message, which indicates if the sender of this message had disallowed forwarding of this particular message.
|
readnonatomicassign |
A Boolean value indicating whether the current user is the sender of the message.
|
readnonatomicassign |
The participant who sent the message.
|
readnonatomicassign |
A Boolean value indicating if the message has one or more attachments.
|
readnonatomicassign |
Flag indicating if the message contains HTML body.
|
readnonatomicassign |
A Boolean value indicating if the message has an in-reply-to message (does not mean it is in cache).
|
readnonatomicassign |
A Boolean value indicating if the message has a least one attachment that has not been viewed.
|
readnonatomicassign |
* The HTML body of the message.
* *
|
readnonatomicassign |
The message importance.
|
readnonatomicassign |
The participant is the initiator of an event message, such as LEFT message when a participant is removed from a conversation by other participant(initiator)
|
readnonatomicassign |
The date and time that the message was last modified.
|
readnonatomicassign |
Returns a CSCapability object that indicates if the message can be marked as read.
This capability is Allowed when all of the following conditions are true:
|
readnonatomicassign |
The unique message identifier.
|
readnonatomicassign |
A Boolean value indicating if the message is marked as a private message.
|
readnonatomicassign |
This is the message ID from the underlying provider (e.g., the AMM server) as-is.
It will be consistent across clients and application launches, but is only guaranteed to be unique for messages of that provider type. It will be empty for draft message.
|
readnonatomicassign |
The messaging provider type (AMM, Zang).
|
readnonatomicassign |
A Boolean value indicating if the message has been read.
|
readnonatomicassign |
Get message Read state.
|
readnonatomicassign |
Message reason type (specific to CSMessagingTypeClosed and CSMessagingTypeLeft message types)
CSMessagingTypeClosed: Reason type of conversation close event.
CSMessagingTypeLeft: Reason type of participants leave event.
|
readnonatomicassign |
The date and time that the message was received.
|
readnonatomicassign |
The list of participants, including the sender, that the message was sent to.
Property of incoming messages only.
|
readnonatomicassign |
Returns a CSCapability object that indicates if the message can be removed.
This capability is Allowed when the Message has not yet been sent, or a send failure has occurred.
|
readnonatomicassign |
When the message type is CSMessagingTypeLeft, this property returns the list of participants that were removed from the conversation.
Property of incoming messages only.
|
readnonatomicassign |
Returns a CSCapability object that indicates if the message can be sent.
This capability is Allowed when all of the following conditions are true:
|
readnonatomicassign |
The message sensitivity.
|
readnonatomicassign |
The message status.
|
readnonatomicassign |
The subject of the conversation at the time the message was sent.
|
readnonatomicassign |
The message type.
|
readnonatomicassign |
Returns a CSCapability object that indicates if the body text or "is typing" status of the message can be updated.
This capability is Allowed when the message has not yet been sent, or a send failure has occurred.
|
readnonatomicassign |
Returns a CSCapability object that indicates if the DoNotForward attribute of the message can be updated.
This capability is Allowed when the Message has not yet been sent, or a send failure has occurred.
|
readnonatomicassign |
Returns a CSCapability object that indicates if the importance attribute of the message can be updated.
This capability is Allowed when the message has not yet been sent, or a send failure has occurred.
|
readnonatomicassign |
Returns a CSCapability object that indicates if the in-reply-to attribute of the message can be updated.
This capability is Allowed when the CSMessage has not yet been sent, or a send failure has occurred.