MessageService.Insert Method

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

Insert(Message, Conversation, IEnumerable, 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, IEnumerable<int> meetings = null, bool sudo = false)

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
meetings
System.Collections.Generic.IEnumerable
sudo
bool

true to perform action as super user, otherwise false.

Returns

Message

The inserted Message