Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChatThread

Package version

Class representing a ChatThread. Chat thread.

Hierarchy

  • ChatThread

Index

Constructors

constructor

Properties

Optional createdBy

createdBy: CommunicationIdentifierKind

Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set.

createdOn

createdOn: Date

The timestamp when the chat thread was created. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

Optional deletedOn

deletedOn: Date

The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

id

id: string

Chat thread id.

topic

topic: string

Chat thread topic.

Methods

addChatParticipants

deleteChatMessage

  • deleteChatMessage(chatThreadId: string, chatMessageId: string, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Deletes a message.

    Parameters

    • chatThreadId: string

      The thread id to which the message was sent.

    • chatMessageId: string

      The message id.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

getChatMessage

listChatMessages

listChatMessagesNext

listChatParticipants

listChatParticipantsNext

listChatReadReceipts

listChatReadReceiptsNext

removeChatParticipant

  • removeChatParticipant(chatThreadId: string, participantCommunicationIdentifier: CommunicationIdentifierModel, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Remove a participant from a thread.

    Parameters

    • chatThreadId: string

      Thread id to remove the participant from.

    • participantCommunicationIdentifier: CommunicationIdentifierModel

      Id of the thread participant to remove from the thread.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

sendChatMessage

sendChatReadReceipt

  • sendChatReadReceipt(chatThreadId: string, sendReadReceiptRequest: SendReadReceiptRequest, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Sends a read receipt event to a thread, on behalf of a user.

    Parameters

    • chatThreadId: string

      Thread id to send the read receipt event to.

    • sendReadReceiptRequest: SendReadReceiptRequest

      Read receipt details.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

sendTypingNotification

  • sendTypingNotification(chatThreadId: string, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Posts a typing event to a thread, on behalf of a user.

    Parameters

    • chatThreadId: string

      Id of the thread.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

updateChatMessage

  • updateChatMessage(chatThreadId: string, chatMessageId: string, updateChatMessageRequest: UpdateChatMessageRequest, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Updates a message.

    Parameters

    • chatThreadId: string

      The thread id to which the message was sent.

    • chatMessageId: string

      The message id.

    • updateChatMessageRequest: UpdateChatMessageRequest

      Details of the request to update the message.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

updateChatThread

  • updateChatThread(chatThreadId: string, updateChatThreadRequest: UpdateChatThreadRequest, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Updates a thread's properties.

    Parameters

    • chatThreadId: string

      The id of the thread to update.

    • updateChatThreadRequest: UpdateChatThreadRequest

      Request payload for updating a chat thread.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

Object literals

type

type: object

className

className: string = "ChatThread"

name

name: string = "Composite"

modelProperties

modelProperties: object

createdByCommunicationIdentifier

createdByCommunicationIdentifier: object

serializedName

serializedName: string = "createdByCommunicationIdentifier"

type

type: object

className

className: string = "CommunicationIdentifierModel"

name

name: string = "Composite"

createdOn

createdOn: object

required

required: boolean = true

serializedName

serializedName: string = "createdOn"

type

type: object

name

name: string = "DateTime"

deletedOn

deletedOn: object

serializedName

serializedName: string = "deletedOn"

type

type: object

name

name: string = "DateTime"

id

id: object

required

required: boolean = true

serializedName

serializedName: string = "id"

type

type: object

name

name: string = "String"

topic

topic: object

required

required: boolean = true

serializedName

serializedName: string = "topic"

type

type: object

name

name: string = "String"

Generated using TypeDoc