MemberDAO
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
Link copied to clipboard
abstract suspend fun getGroupConversationWithUserIdsWithBothDomains(firstDomain: String, secondDomain: String): Map<ConversationIDEntity, List<UserIDEntity>>
Link copied to clipboard
abstract suspend fun getOneOneConversationWithFederatedMembers(domain: String): Map<ConversationIDEntity, UserIDEntity>
Link copied to clipboard
Link copied to clipboard
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
abstract suspend fun selectMembersNameAndHandle(conversationId: QualifiedIDEntity): Map<QualifiedIDEntity, NameAndHandleEntity>
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)