@Override
	public void onHeartRateMeasurementReceived(@NonNull final BluetoothDevice device,
											   final int heartRate,
											   @Nullable final Boolean contactDetected,
											   @Nullable final Integer energyExpanded,
											   @Nullable final List<Integer> rrIntervals) {
		this.heartRate = heartRate;
		this.contactDetected = contactDetected;
		this.energyExpanded = energyExpanded;
		this.rrIntervals = rrIntervals;
	}
Response class that could be used as a result of a synchronous request.
The data received are available through getters, instead of a callback.
<p>
Usage example:
<pre>
try {
    HeartRateMeasurementResponse response = waitForNotification(characteristic)
          .awaitValid(HeartRateMeasurementResponse.class);
    int heartRate = response.getHeartRate();
    ...
} catch ({@link RequestFailedException} e) {
    Log.w(TAG, "Request failed with status " + e.getStatus(), e);
} catch ({@link InvalidDataException} e) {
    Log.w(TAG, "Invalid data received: " + e.getResponse().getRawData());
}
</pre>
</p>
ble-common/src/main/java/no/nordicsemi/android/ble/common/callback/hr/HeartRateMeasurementResponse.java