ConversationService.GetMessages Method

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

GetMessages(int, int?, Query)

Get messages from the specified conversation.

public static PagedList<Message> GetMessages(int id, int? userId = default(int? ), Query opts = null)

Parameters

id
int

Id of conversation for which to get messages.

userId
int?

Id of recipient, null to get messages for the current user.

opts
Query

Query options for paging, sorting etc.

Returns

Weavy.Core.Collections.PagedList

Returns a paged list of Post items.