# Namespace: Messaging

AvayaClientServices.Services.Messaging contains all classes that belong to Messaging module. For Messaging module class, see AvayaClientServices.Services.Messaging.Messaging.

## Classes

AbstractThumbnailCreator
Attachment
AttachmentBuilder
ChatStateEvent
Conversation
ConversationBuilder
Escalation
Message
MessageBuilder
Messaging
MessagingError
MessagingQuery
Participant
ThumbnailCreator

## Members

#### <static, readonly> AttachmentStatus :String

  Determines status of attachment's download and consumption.

  ##### Type:

  - String

  ##### Properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `READY_TO_DOWNLOAD` | String | READY_TO_DOWNLOAD | Attachment is ready to download.
  `DOWNLOADING` | String | DOWNLOADING | Attachment is being downloaded.
  `READY_TO_CONSUME` | String | READY_TO_CONSUME | Attachment is downloaded and ready to consume.
  `CONSUMED` | String | CONSUMED | Attachment is downloaded and consumed.
  `ERROR` | String | ERROR | An error occurred.

#### <static, readonly> AttachmentType :String

  Determines whether attachment is a thumbnail for other attachment, or a regular attachment.

  ##### Type:

  - String

  ##### Properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `MAIN` | String | MAIN | This attachment is a regular attachment.
  `THUMBNAIL` | String | THUMBNAIL | This attachment is a thumbnail for a MAIN attachment.

#### <static, readonly> ConversationType :String

  Determines type of conversation.

  ##### Type:

  - String

  ##### Properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `THREAD` | String | THREAD | A private conversation between participants. Participants in a thread must be invited to the conversation. Participants can leave a thread, but cannot rejoin unless re-invited by an active participant. The content of a thread is not the same for all participants, it is directly related to when a user has joined and left conversation. You are only aware of conversation activity that occurs while you are an active participant.

#### <static, readonly> MessageImportance :String

  Determines message's priority.

  ##### Type:

  - String

  ##### Properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `HIGH` | String | HIGH | Message has high priority.
  `LOW` | String | LOW | Message has low priority.
  `NORMAL` | String | NORMAL | Message has regular priority.

#### <static, readonly> MessageType :String

  Determines type and purpose of message.

  ##### Type:

  - String

  ##### Properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `MESSAGE` | String | MESSAGE | A regular message.
  `JOINED` | String | JOINED | An indication that a new participant has joined the conversation.
  `LEFT` | String | LEFT | An indication that a participant has left the conversation.
  `SESSION` | String | SESSION | An indication of an Escalation.
  `SUBJECT_CHANGE` | String | SUBJECT_CHANGE | An indication that conversation's subject has changed.
  `CLOSED` | String | CLOSED | An indication that conversation has been closed.
  `START` | String | START | An indication that conversation has started.

#### <static, readonly> MessagingErrorReason :String

  Dictionary containing messaging related error types.

  Used as a reason for AvayaClientServices.Services.Messaging.MessagingError

  ##### Type:

  - String

  ##### Properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `MESSAGING_NOTIFICATIONS_DISABLED` | String | Notification channel is disabled. | Message indicates that notification channel is disabled.
  `MESSAGING_CLOSE_FAILED` | String | Server failed to be closed. | Message indicates that server failed to be closed
  `MESSAGING_SEND_ATTACHMENT_FAILED` | String | Failed to send attachment. | Message indicates that sending of attachment failed.
  `MESSAGING_FEATURE_NOT_AVAILABLE` | String | Feature is not available in determined server version. | Message indicates that requested feature is not available in determined server version.
  `MESSAGING_SERVER_ERROR` | String | Action failed due to server error. | Message indicates that action failed due to server error.
  `MESSAGING_NOTIFICATION_FAILED` | String | Notification failed. | Message indicates that notification failed.
  `MESSAGING_PARTICIPANT_ADDRESS_INVALID` | String | Failed to add Participant to Conversation. | Message indicates that it failed to add Participant to Conversation.
  `MESSAGING_LEAVE_CONVERSATION_FAILED` | String | Failed to leave one or more conversations. | Message indicates that it failed to leave one or more conversations
  `MESSAGING_NOT_STARTED` | String | Failed to perform selected action. Messaging is not started. | Message indicates that selected action failed because Messaging service is not started.
  `MESSAGING_CREATE_ATTACHMENT_FAILED` | String | Failed to create attachment. Internal browser error. | Message indicates that it failed to create attachment because of a browser error.
  `MESSAGING_BODY_LENGTH_EXCEEDED` | String | Failed to send message. Maximum message body length exceeded. | Message indicates that message was not send because body of message was too long.
  `MESSAGING_SUBJECT_LENGTH_EXCEEDED` | String | Failed to send message. Maximum message subject length exceeded. | Message indicates that message was not send because subject of message was too long.
  `MESSAGING_INVALID_STATE` | String | Invalid state. | Message indicates that state is invalid.
  `MESSAGING_NOTIFICATIONS_CHANNEL_FAILED` | String | Start notification channel failed. | Start notification channel failed.
  `MESSAGING_INTERNAL_ERROR` | String | An internal error occurred. | An internal error occurred.
  `MESSAGING_TIMEOUT` | String | An operation has timed out | An operation has timed out.

#### <static, readonly> ResourceStatus :String

  Determines status of message, attachment or conversation.

  ##### Type:

  - String

  ##### Properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `DRAFT_UNSENT` | String | DRAFT_UNSENT | Unsent draft.
  `DRAFT_SENDING` | String | DRAFT_SENDING | Draft in sending phase.
  `DRAFT_REMOVING` | String | DRAFT_REMOVING | Draft in removing phase.
  `DRAFT_ERROR` | String | DRAFT_ERROR | Error in draft.
  `PUBLISHED` | String | PUBLISHED | Published draft.
  `PUBLISHED_LEAVING` | String | PUBLISHED_LEAVING | Leaving in process.
  `PUBLISHED_LEFT` | String | PUBLISHED_LEFT | User has left.

#### <static, readonly> SensitivityLevel :String

  Determines conversation's level of privacy.

  ##### Type:

  - String

  ##### Properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `NORMAL` | String | NORMAL | Privacy level is normal.
  `PERSONAL` | String | PERSONAL | Privacy level is personal.
  `PRIVATE` | String | PRIVATE | Privacy level is private.
  `CONFIDENTIAL` | String | CONFIDENTIAL | Privacy level is confidential.

#### <static, readonly> SessionType :String

  Determines type of Escalation.

  ##### Type:

  - String

  ##### Properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `AUDIO` | String | AUDIO | Session is used to transmit audio.
  `VIDEO` | String | VIDEO | Session is used to transmit video.