MessagesController Class

Namespace:
Weavy.Web.Api.Controllers
Assembly:
Weavy.Web.dll

The Messages API allows a user to create private messages between an arbitrary number of people. The Messages API is built around 2 central objects: Conversations and Messages.

public class MessagesController : WeavyApiController
Inheritance:
System.Object → WeavyApiControllerMessagesController

Constructors

MessagesController()

Methods

AddMembersToConversation(CreateConversationModel) Add members to existing conversation.
Archive(Int32) Archives a conversation for the current user.
CreateConversation(CreateConversationModel) Create a new or get the existing conversation between the current- and specified user.
Delivered(Int32) Marks a conversation as delivered for the current user.
FollowConversation(Int32) Mark a conversation as followed by the current user.
GeConversationWithUser(String) Get the existing, or create a new, one-on-one conversation between the current- and specified user.
Get(Int32) Get the message with the specified id.
GetConversation(Int32) Get the conversation with the specified id.
GetConversations(QueryOptions) Get the current user's conversations.
GetMessages(Int32, Query) Get the messages in the specified conversation.
GetPeople(QueryOptions) Get the current user's conversations with other people.
GetRooms(QueryOptions) Get the current user's chat rooms.
GetUnread(Boolean, QueryOptions) Get the current user's unread conversations (conversations with unread messages).
InsertMessage(ConversationIn) Posts a new message to the specified recipients (automatically creates a new conversation if needed).
InsertMessage(Int32, MessageIn) Creates a new message in the specified conversation.
LeaveConversation(Int32) Leave a conversation.
LeaveConversation(Int32, Int32) Removes a user from the conversation.
Like(Int32) Mark a message as liked by the current user.
Read(Int32) Marks a conversation as read for the current user.
ReadAll() Mark all conversations for the current user as read.
Star(Int32) Mark a message as starred by the current user.
StarConversation(Int32) Mark a conversation as starred by the current user.
UnArchive(Int32) Unarchives a conversation for the current user.
UnfollowConversation(Int32) Mark a conversation as unfollowed by the current user.
Unlike(Int32) Mark a message as unliked by the current user.
UnRead(Int32) Marks a conversation as unread for the current user.
Unstar(Int32) Mark a message as unstarred by the current user.
UnstarConversation(Int32) Mark a conversation as unstarred by the current user.
UpdateConversation(Int32, CreateConversationModel) Updates a conversation.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.