Jaa


WebexClientWrapper.CreateMessageAsync Method

Definition

Wraps Webex API's CreateMessageAsync method.

public virtual System.Threading.Tasks.Task<string> CreateMessageAsync (string recipient, string text, System.Collections.Generic.IList<Uri> files = default, Thrzn41.WebexTeams.Version1.MessageTextType messageType = Thrzn41.WebexTeams.Version1.MessageTextType.Text, Thrzn41.WebexTeams.Version1.MessageTarget target = Thrzn41.WebexTeams.Version1.MessageTarget.PersonId, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateMessageAsync : string * string * System.Collections.Generic.IList<Uri> * Thrzn41.WebexTeams.Version1.MessageTextType * Thrzn41.WebexTeams.Version1.MessageTarget * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.CreateMessageAsync : string * string * System.Collections.Generic.IList<Uri> * Thrzn41.WebexTeams.Version1.MessageTextType * Thrzn41.WebexTeams.Version1.MessageTarget * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function CreateMessageAsync (recipient As String, text As String, Optional files As IList(Of Uri) = Nothing, Optional messageType As MessageTextType = Thrzn41.WebexTeams.Version1.MessageTextType.Text, Optional target As MessageTarget = Thrzn41.WebexTeams.Version1.MessageTarget.PersonId, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

recipient
String

Target id of the message.

text
String

Text of the message.

files
IList<Uri>

List of files attached to the message.

messageType
Thrzn41.WebexTeams.Version1.MessageTextType

Type of message. It can be Text or Markdown.

target
Thrzn41.WebexTeams.Version1.MessageTarget

Target for the message.

cancellationToken
CancellationToken

A cancellation token for the task.

Returns

The created message id.

Applies to