com.malinskiy.marathon.device.DeviceInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Cross-platform test runner
package com.malinskiy.marathon.device
data class DeviceInfo(
val operatingSystem: OperatingSystem,
val serialNumber: String,
val model: String,
val manufacturer: String,
val networkState: NetworkState,
val deviceFeatures: Collection,
val healthy: Boolean
)
fun Device.toDeviceInfo() = DeviceInfo(
operatingSystem = operatingSystem,
serialNumber = serialNumber,
model = model,
manufacturer = manufacturer,
networkState = networkState,
deviceFeatures = deviceFeatures,
healthy = healthy
)