Class MessageService#
Defined in File MessageService.cs
Inheritance Relationships#
Base Type#
public xbe.sdk.ServiceBase
(Class ServiceBase)
Class Documentation#
- class xbe.sdk.Services.MessageService : xbe.sdk.ServiceBase#
Public Functions
- MessageService ()#
- async Task<float> Count (string channelId, Dictionary<string, string> query)#
Returns the count of messages for a given channel.
- async Task<Message> Create (string channelId, Message obj)#
Post a new message to the channel with the given id.
- async Task<Message> CreateThread (string channelId, string id, Message obj)#
Creates a new thread based on the message in the given channel.
channelId The unique identifier of the channel containing the message to thread.
id The unique identifier of the message to create a thread for.
obj The first message of the new thread.
- Return:
The successfully posted message of the new thread.
- async Task Delete (string channelId, string id)#
Deletes the message from the channel with the given id.
- async Task<List<Message>> FindAll (string channelId, Dictionary<string, string> query)#
Returns all messages for the channel with the specified id.
- async Task<Message> FindById (string channelId, string id)#
Returns a single message from the channel that the user has access to.
- async Task Truncate (string channelId, Dictionary<string, string> query)#
Delete all messages from the channel matching the given search criteria.