android-components / mozilla.components.service.fretboard / ExperimentSource


interface ExperimentSource (source)

Represents a location where experiments are stored (Kinto, a JSON file on a server, etc)


Name Summary
getExperiments abstract fun getExperiments(snapshot: ExperimentsSnapshot): ExperimentsSnapshot
Requests new experiments from the source, parsing the response into experiments

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.


Name Summary
KintoExperimentSource class KintoExperimentSource : ExperimentSource
Class responsible for fetching and parsing experiments from a Kinto server