ListsApi

interface ListsApi

View and manage lists.

See also

Functions

Link copied to clipboard
abstract suspend fun addAccountsToList(listId: String, accountIds: List<String>)

Adds the given accounts to the given list.

Link copied to clipboard
abstract suspend fun createList(title: String, replyPolicy: ListReplyPolicy?): UserList

Creates a new list.

Link copied to clipboard
abstract suspend fun deleteList(listId: String)

Deletes a list.

Link copied to clipboard
abstract suspend fun getList(listId: String): UserList?

Fetches the list with the given listId.

Link copied to clipboard
abstract suspend fun getListAccounts(listId: String, limit: Int? = null, pageInfo: PageInfo? = null): Page<List<Account>>?

Gets the list of accounts in the given list.

Link copied to clipboard
abstract suspend fun getOwnLists(): List<UserList>

Fetches all lists owned by the account.

Link copied to clipboard
abstract suspend fun removeAccountsFromList(listId: String, accountIds: List<String>)

Removes the given accounts from the given list.

Link copied to clipboard
abstract suspend fun updateList(listId: String, title: String?, replyPolicy: ListReplyPolicy?): UserList

Changes the title of a list, or which replies to show.