MemberRepository

Repository for the member entity.

Inheritors

Functions

Link copied to clipboard
abstract fun getAllMembersStream(): ERROR CLASS: Symbol not found for Flow<kotlin/collections/List<com/example/eduskunta/data/db/entities/MemberEntity>>

Get all members from the database.

Link copied to clipboard
abstract fun getMembersByPartyStream(party: String): ERROR CLASS: Symbol not found for Flow<kotlin/collections/List<com/example/eduskunta/data/db/entities/MemberEntity>>

Get members by party from the database.

Link copied to clipboard
abstract fun getMemberStream(personNumber: Int): ERROR CLASS: Symbol not found for Flow<com/example/eduskunta/data/db/entities/MemberEntity?>

Get member by personNumber from the database.

Link copied to clipboard
abstract suspend fun insertAll(members: List<MemberEntity>)

Insert all members into the database.

Link copied to clipboard
abstract suspend fun refreshMembers()

Refresh the members from the API and insert them into the database.