MessengerController Class

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

public class MessengerController : WeavyController
Inheritance:
System.Object → WeavyControllerMessengerController

Constructors

MessengerController()

Methods

Archived() Display list of archived conversations.
Conversation(int, Query) Display specified conversation.
CreateRoom(string, IEnumerable) Create a new room conversation.
DrawerMessage(UserQuery) Returns html for the new message drawer, i.e. a list of user matching the search
DrawerRoomMembers(UserQuery, Int32[]) Returns html for the new room members drawer.
GetConversationWithUser(int) Get the existing, or create a new, one-on-one conversation between the current- and specified user.
Index() Display list of active conversations.
Messages(int, Query) Display messages for specified conversation.
PartialConversation(int, bool) Returns the specified conversation.
PartialDetails(int) Returns the specified conversation details.
PartialList(int?) Returns the conversations list.
PartialMessage(int) Returns the specified message.
PartialUser(int) Returns the specified user profile.
Search(ConversationQuery) Search conversations.
UpdateRoom(int, string) Update room name.
UpdateUserProfile() Update user profile.

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, Formatting?, 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.