# DeviceResult

public final class DeviceResult

Class representing a device response after an asynchronous command.

## Constructors

OnDeviceResultListener.DeviceResult
Link copied to clipboard
public OnDeviceResultListener.DeviceResult OnDeviceResultListener.DeviceResult(CommandStatus status, Map<ScanMode, IMeasurementData> measurements)

## Properties

measurements
Link copied to clipboard
private final Map<ScanMode, IMeasurementData> measurements

Map of measurement results, if applicable. Value is `null` if the command does not provide any measurement results, or if the operation was not successful.

status
Link copied to clipboard
private final CommandStatus status

Status code of the completed command. CommandStatus.SUCCESS for a successful operation

## Functions

getMeasurements
Link copied to clipboard
public final Map<ScanMode, IMeasurementData> getMeasurements()

Map of measurement results, if applicable. Value is `null` if the command does not provide any measurement results, or if the operation was not successful.

getStatus
Link copied to clipboard
public final CommandStatus getStatus()

Status code of the completed command. CommandStatus.SUCCESS for a successful operation