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(Int32, Int32, Access) Adds a User to the specified Conversation.
Delete(Int32, Boolean) Permanently deletes a Conversation.
Get(Int32, Boolean) Gets a Conversation object from the repository.
GetAsMember(Int32, Int32, Boolean) Gets a Conversation object from the repository.
GetConversations(Int32, Nullable, QueryOptions) Get all conversations where the specified user is member.
GetFollowed(Int32, QueryOptions) Gets the conversations that a user is following.
GetMember(Int32, Int32) Gets the specified space member.
GetMembers(Int32, QueryOptions) Gets the users that are members of the specified Conversation.
GetMessages(Int32, Nullable, Query) Get messages from the specified conversation.
GetOneOnOne(Int32, Int32, Boolean) Returns existing one-on-one conversation between 2 people, or null if no such conversation exists.
GetStarred(Int32, QueryOptions) Gets the conversations that a user has starred.
GetUnread(Nullable, Boolean, QueryOptions) Get conversations with unread messages for the specified user.
Insert(Conversation, IEnumerable) Inserts a Conversation object into the repository.
Leave(Int32, Nullable) Removes a User from the specified Conversation.
ReadAll(Int32) Sets the read status to true for all the users' conversations.
Search(ConversationQuery) Performs a search according to the specified ConversationQuery object.
SetArchived(Int32, NullableTime>, Nullable) Sets a value indicating if the Conversation is archived.
SetDelivered(Int32, NullableTime>, Nullable) Sets a value indicating when the last message in the conversation was delivered to the specified user.
SetNotified(Int32, NullableTime>, Nullable) Marks a Conversation as notified.
SetRead(Int32, NullableTime>, Nullable) Sets a value indicating if and when the Conversation was read.
Update(Conversation) Updates a Conversation object in the repository.