MetaData

@Serializable
data class MetaData(val appName: String, val appPackage: String, val operatingSystemVersion: String, val deviceModel: String, val appVersion: String, val runTarget: RunTarget? = null, val mockzillaVersion: String)

Device and application metadata collected when Mockzilla starts. Displayed in the management dashboard to identify the connected device, and used in ZeroConf service records.

Don't add non-optional fields to this type since that will break backward compatibility

Constructors

Link copied to clipboard
constructor(appName: String, appPackage: String, operatingSystemVersion: String, deviceModel: String, appVersion: String, runTarget: RunTarget? = null, mockzillaVersion: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "appName")
val appName: String

The name of the application.

Link copied to clipboard
@SerialName(value = "appPkg")
val appPackage: String

The application package name or bundle identifier.

Link copied to clipboard
@SerialName(value = "appVer")
val appVersion: String

The application version string.

Link copied to clipboard
@SerialName(value = "devModel")
val deviceModel: String

The device model identifier.

Link copied to clipboard

true if the server is running on an Android device or emulator.

Link copied to clipboard
@SerialName(value = "mzVer")
val mockzillaVersion: String

The version of the Mockzilla library.

Link copied to clipboard
@SerialName(value = "osVer")
val operatingSystemVersion: String

The OS version string of the device.

Link copied to clipboard
@SerialName(value = "runTarg")
val runTarget: RunTarget?

The platform the server is running on, or null if unknown.

Functions

Link copied to clipboard

Serialises this metadata to a Map for embedding in ZeroConf TXT records.