ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / user.message / MessageDAO

MessageDAO

class MessageDAO

DAO for the Message model, controlling access to the message collection.

Constructors

Name Summary
<init> DAO for the Message model, controlling access to the message collection.MessageDAO(database: CoroutineDatabase)

Functions

Name Summary
countUnreadForRecipient suspend fun countUnreadForRecipient(userIdentifier: UserIdentifier): Long
getAll suspend fun getAll(): List<Message>
getAllForRecipient suspend fun getAllForRecipient(userIdentifier: UserIdentifier): List<Message>
getAllForSender suspend fun getAllForSender(userIdentifier: UserIdentifier): List<Message>
getUnreadForRecipient suspend fun getUnreadForRecipient(userIdentifier: UserIdentifier): List<Message>