@Override
	public void writeToParcel(@NonNull final Parcel dest, final int flags) {
		super.writeToParcel(dest, flags);
		dest.writeInt(sequenceNumber);
		if (time == null) {
			dest.writeByte((byte) 0);
		} else {
			dest.writeByte((byte) 1);
			dest.writeLong(time.getTimeInMillis());
		}
		if (glucoseConcentration == null) {
			dest.writeByte((byte) 0);
		} else {
			dest.writeByte((byte) 1);
			dest.writeFloat(glucoseConcentration);
		}
		if (unit == null) {
			dest.writeByte((byte) 0);
		} else {
			dest.writeByte((byte) 1);
			dest.writeInt(unit);
		}
		if (type == null) {
			dest.writeByte((byte) 0);
		} else {
			dest.writeByte((byte) 1);
			dest.writeInt(type);
		}
		if (sampleLocation == null) {
			dest.writeByte((byte) 0);
		} else {
			dest.writeByte((byte) 1);
			dest.writeInt(sampleLocation);
		}
		super.writeToParcel(dest, flags);
		if (status == null) {
			dest.writeByte((byte) 0);
		} else {
			dest.writeByte((byte) 1);
			dest.writeInt(status.value);
		}
		dest.writeByte((byte) (contextInformationFollows ? 1 : 0));
	}
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 {
    GlucoseMeasurementResponse response = waitForNotification(characteristic)
          .awaitValid(GlucoseMeasurementResponse.class);
    if (response.contextInformationFollows()) {
        ...
    }
    ...
} 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/glucose/GlucoseMeasurementResponse.java