AirQualityRepository

abstract class AirQualityRepository

Specifies the functions required by an AirQuality Repository. Should be implemented by a repository using a specific source of truth.

Constructors

Link copied to clipboard
fun AirQualityRepository()

Functions

Link copied to clipboard
abstract suspend fun getAQI(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double
Link copied to clipboard
abstract suspend fun getNO2(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double
Link copied to clipboard
abstract suspend fun getPM10(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double
Link copied to clipboard
abstract suspend fun getPM25(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double

Inheritors

Link copied to clipboard
Link copied to clipboard