P2PDataSource

interface P2PDataSource

Inheritors

Functions

Link copied to clipboard
abstract suspend fun getAllMessages(from: String?, to: String?): List<P2PMessage>?

Retrieves all P2P messages from the data source.

Link copied to clipboard
abstract suspend fun getLocationMessage(from: String?): List<LocationMessage>?

Retrieves all location messages from the data source.

Link copied to clipboard
abstract suspend fun insertLocation(location: LocationMessage)

Inserts a new location message into the data source.

Link copied to clipboard
abstract suspend fun insertMessages(message: P2PMessage)

Inserts a new P2P message into the data source.