MessageService.Insert Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Insert(Message, Conversation, IEnumerable, IEnumerable, bool)

Insert a new Message into a conversation.

public static Message Insert(Message message, Conversation parent, IEnumerable<int> blobs = null, IEnumerable<int> embeds = null, bool auth = true)

Parameters

message
Message

Message object to insert.

parent
Conversation

Conversation where Message should be inserted.

blobs
System.Collections.Generic.IEnumerable

Ids of Blobs to attach.

embeds
System.Collections.Generic.IEnumerable
auth
bool

true to check if the user has permission to insert the Message, otherwise false.

Returns

Message

The inserted Message