HearingTest

data class HearingTest(val id: String?, val metadata: HearingTest.Metadata, val runs: List<HearingTest.TestRun>, @Json(name = "_embedded") val embedded: HearingTest.Embedded? = null)

A Mimi hearing test with metadata and multiple test runs.

Constructors

Link copied to clipboard
constructor(id: String?, metadata: HearingTest.Metadata, runs: List<HearingTest.TestRun>, @Json(name = "_embedded") embedded: HearingTest.Embedded? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Embedded(val resultsV2: MimiTestResultResponse? = null, val visualizationLevels: PersonalizationVisualization? = null)

Data class containing optional embedded data that might be returned when submitting a Hearing Test

Link copied to clipboard
data class Metadata(val sdkVersion: String?, val host: HearingTest.Metadata.Host?, val client: HearingTest.Metadata.Client?, val engineVersion: String?)

Class containing the Hearing Test Metadata

Link copied to clipboard
data class TestRun(val id: String? = null, val metadata: HearingTest.TestRun.Metadata, val results: Map<String, Any>, @Json(name = "noise") val noiseReport: Map<String, Any>? = null)

Data class containing intermediate information about an ongoing Hearing Test

Properties

Link copied to clipboard
Link copied to clipboard
val id: String?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun timestamp(): Long?

Convenience method that extracts the embedded timestamp inside the Hearing Test