ConversationService.GetUnread Method

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

GetUnread(int?, bool, QueryOptions)

Get conversations with unread messages for the specified user.

public static PagedList<Conversation> GetUnread(int? userId = default(int? ), bool followed = false, QueryOptions opts = null)

Parameters

userId
int?

Id of the User for which to get unread conversations, null to get conversations for the current user.

followed
bool

When false returns all conversations with unread messages, otherwise returns only followed conversations with unread messages.

opts
QueryOptions

Query options for paging, sorting etc.

Returns

Weavy.Core.Collections.PagedList

Returns a paged list of Conversation items.