15 lines
387 B
Kotlin
15 lines
387 B
Kotlin
package co.electriccoin.zcash.ui.screen.support.model
|
|
|
|
import android.os.Build
|
|
|
|
data class DeviceInfo(val manufacturer: String, val device: String, val model: String) {
|
|
|
|
fun toSupportString() = buildString {
|
|
appendLine("Device: $manufacturer $device $model")
|
|
}
|
|
|
|
companion object {
|
|
fun new() = DeviceInfo(Build.MANUFACTURER, Build.DEVICE, Build.MODEL)
|
|
}
|
|
}
|