ConversationService Class

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

Service layer for Conversation objects.

public static class ConversationService
Inheritance:
System.Object → ConversationService

Methods

AddMember(int, int, Access, bool) Adds a User to the specified Conversation.
Delete(int, bool) Permanently deletes a Conversation.
Get(int, bool, bool) Gets a Conversation object from the repository.
GetAsMember(int, int, bool, bool) Gets a Conversation object from the repository.
GetFollowed(int, QueryOptions) Gets the conversations that a user is following.
GetMembers(int, ConversationMemberQuery) Gets the users that are members of the specified Conversation.
GetMessages(int, QueryOptions) Get messages from the specified conversation.
GetOneOnOne(int, int, bool, bool) Returns existing one-on-one conversation between 2 people, or null if no such conversation exists.
GetStarred(int, QueryOptions) Gets the conversations that a user has starred.
GetUnread(int?, QueryOptions) Get conversations with unread messages for the specified user.
Insert(Conversation, IEnumerable) Inserts a Conversation object into the repository.
ReadAll(int) Sets the read status to true for all the users' conversations.
RemoveMember(int, int?, bool) Removes a User from the specified Conversation.
Search(ConversationQuery) Performs a search according to the specified ConversationQuery object.
SetArchived(int, DateTime?, int?) Sets a value indicating if the Conversation is archived or not.
SetDelivered(int, DateTime?, int?) Sets a value indicating when the last message in the conversation was delivered to the specified user.
SetNotified(int, DateTime?, int?) Marks a Conversation as notified via email.
SetPinned(int, DateTime?, int?, bool) Unpin the specified conversation.
SetRead(int, DateTime?, int?) Sets a value indicating if and when the Conversation was read.
Update(Conversation, bool) Updates a Conversation object in the repository.