Click or drag to resize

MessageClientPostToRoom Method

Posts a plain text message, and optionally, mentions group and a media content attachment, to a room by room Id.

Namespace:  SparkSDK
Assembly:  SparkSDK (in SparkSDK.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
C#
public void PostToRoom(
	string roomId,
	string text,
	List<Mention> mentions = null,
	List<LocalFile> files = null,
	Action<SparkApiEventArgs<Message>> completionHandler = null
)

Parameters

roomId
Type: SystemString
The identifier of the room where the message is to be posted.
text
Type: SystemString
The plain text message to be posted to the room.
mentions (Optional)
Type: System.Collections.GenericListMention
The mention items to be posted to the room.
files (Optional)
Type: System.Collections.GenericListLocalFile
Local file objects to be uploaded to the room.
completionHandler (Optional)
Type: SystemActionSparkApiEventArgsMessage
The completion event handler.
Remarks
Since: 0.1.0
See Also