NetworkDataSource

Data source interface for Jetpack.

Functions

Link copied to clipboard
abstract suspend fun getPost(id: Int): NetworkPost

Retrieves a network post with the specified ID from the designated endpoint.

Link copied to clipboard
abstract suspend fun getPosts(): List<NetworkPost>

Retrieves a list of network posts from the specified endpoint.