MemberDAO

interface MemberDAO

Inheritors

Functions

Link copied to clipboard
abstract suspend fun deleteMemberByQualifiedID(userID: QualifiedIDEntity, conversationID: QualifiedIDEntity)
Link copied to clipboard
abstract suspend fun deleteMembersByQualifiedID(userIDList: List<QualifiedIDEntity>, conversationID: QualifiedIDEntity): Long

Deletes a list of user ids from the Conversation. return a list of the users that where actually deleted if the list is empty then no user was deleted

abstract suspend fun getGroupConversationWithUserIdsWithBothDomains(firstDomain: String, secondDomain: String): Map<ConversationIDEntity, List<UserIDEntity>>
Link copied to clipboard
abstract suspend fun insertMember(member: MemberEntity, conversationID: QualifiedIDEntity)
Link copied to clipboard
abstract suspend fun insertMembers(memberList: List<MemberEntity>, groupId: String)
Link copied to clipboard
abstract suspend fun insertMembersWithQualifiedId(memberList: List<MemberEntity>, conversationID: QualifiedIDEntity)
Link copied to clipboard
abstract suspend fun observeConversationMembers(qualifiedID: QualifiedIDEntity): <Error class: unknown class><List<MemberEntity>>
Link copied to clipboard
abstract suspend fun observeIsUserMember(conversationId: QualifiedIDEntity, userId: UserIDEntity): <Error class: unknown class><Boolean>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun updateConversationMemberRole(conversationId: QualifiedIDEntity, userId: UserIDEntity, role: MemberEntity.Role)
Link copied to clipboard
abstract suspend fun updateFullMemberList(memberList: List<MemberEntity>, conversationID: QualifiedIDEntity)
Link copied to clipboard
abstract suspend fun updateMemberRole(userId: UserIDEntity, conversationID: QualifiedIDEntity, newRole: MemberEntity.Role)
Link copied to clipboard
abstract suspend fun updateOrInsertOneOnOneMember(member: MemberEntity, conversationID: QualifiedIDEntity)