diff --git a/libs/deserializer/src/main/java/de/cyface/deserializer/BinaryFormatDeserializer.java b/libs/deserializer/src/main/java/de/cyface/deserializer/BinaryFormatDeserializer.java
index 016ae5f..f2bd833 100644
--- a/libs/deserializer/src/main/java/de/cyface/deserializer/BinaryFormatDeserializer.java
+++ b/libs/deserializer/src/main/java/de/cyface/deserializer/BinaryFormatDeserializer.java
@@ -29,7 +29,7 @@
import de.cyface.deserializer.exceptions.InvalidLifecycleEvents;
import de.cyface.model.Measurement;
import de.cyface.model.MeasurementIdentifier;
-import de.cyface.model.MetaData;
+import de.cyface.model.RequestMetaData;
/**
* A {@link Deserializer} for a file in Cyface binary format. Constructs a new measurement from a ZLIB compressed
@@ -62,7 +62,7 @@ public class BinaryFormatDeserializer implements Deserializer {
* The meta information about the {@link Measurement}. This information is not part of the datafiles but is usually
* stored alongside the binary data. It is usually used to get a glimpse into what data to expect.
*/
- private final MetaData metaData;
+ private final RequestMetaData metaData;
/**
* The stream of compressed data to load locations and measured data points from
*/
@@ -77,7 +77,7 @@ public class BinaryFormatDeserializer implements Deserializer {
* expect
* @param compressedData The stream of compressed data to load locations and measured data points from
*/
- BinaryFormatDeserializer(final MetaData metaData, final InputStream compressedData) {
+ BinaryFormatDeserializer(final RequestMetaData metaData, final InputStream compressedData) {
this.metaData = Objects.requireNonNull(metaData);
this.compressedData = Objects.requireNonNull(compressedData);
}
diff --git a/libs/deserializer/src/main/java/de/cyface/deserializer/DeserializerFactory.java b/libs/deserializer/src/main/java/de/cyface/deserializer/DeserializerFactory.java
index 961fe70..cc467a9 100644
--- a/libs/deserializer/src/main/java/de/cyface/deserializer/DeserializerFactory.java
+++ b/libs/deserializer/src/main/java/de/cyface/deserializer/DeserializerFactory.java
@@ -24,7 +24,7 @@
import java.util.List;
import java.util.UUID;
-import de.cyface.model.MetaData;
+import de.cyface.model.RequestMetaData;
/**
* A collection of static factory methods to hide the possible complexity of {@link Deserializer} creation.
@@ -45,7 +45,7 @@ private DeserializerFactory() {
/**
* Create a new {@link Deserializer} for a {@link de.cyface.model.Measurement} in Cyface Binary data with its
* accompanying events.
- * Both are provided as compressed input streams, together with the {@link MetaData} about the
+ * Both are provided as compressed input streams, together with the {@link RequestMetaData} about the
* Measurement
.
*
* @param metaData The meta information about the Measurement
to load
@@ -54,7 +54,7 @@ private DeserializerFactory() {
* @return A Deserializer
for the Cyface binary format
* @throws IOException When writing data failed
*/
- public static BinaryFormatDeserializer create(final MetaData metaData, final InputStream compressedDataStream) throws IOException {
+ public static BinaryFormatDeserializer create(final RequestMetaData metaData, final InputStream compressedDataStream) throws IOException {
return new BinaryFormatDeserializer(metaData, compressedDataStream);
}
diff --git a/libs/deserializer/src/main/java/de/cyface/deserializer/UnzippedPhoneDataDeserializer.java b/libs/deserializer/src/main/java/de/cyface/deserializer/UnzippedPhoneDataDeserializer.java
index abbdca1..0b89d09 100644
--- a/libs/deserializer/src/main/java/de/cyface/deserializer/UnzippedPhoneDataDeserializer.java
+++ b/libs/deserializer/src/main/java/de/cyface/deserializer/UnzippedPhoneDataDeserializer.java
@@ -41,7 +41,7 @@
import de.cyface.model.Event;
import de.cyface.model.Measurement;
import de.cyface.model.MeasurementIdentifier;
-import de.cyface.model.MetaData;
+import de.cyface.model.RequestMetaData;
import de.cyface.model.Modality;
import de.cyface.model.Point3DImpl;
import de.cyface.model.RawRecord;
@@ -253,7 +253,7 @@ private List queryForEvents(final Connection connection, final Measuremen
* default values
* @throws SQLException If the query was not successful
*/
- private MetaData queryForMetaData(final Connection connection, final long measurementNumber) throws SQLException {
+ private RequestMetaData queryForMetaData(final Connection connection, final long measurementNumber) throws SQLException {
final var deviceIdentifierQuery = connection.prepareStatement(DEVICE_IDENTIFIER_QUERY);
final var deviceIdentifierResultSet = deviceIdentifierQuery.executeQuery();
@@ -268,7 +268,7 @@ private MetaData queryForMetaData(final Connection connection, final long measur
final var lengthResultSet = lengthQuery.executeQuery();
lengthResultSet.next();
final var length = lengthResultSet.getDouble(1);
- return new MetaData(measurementIdentifier, deviceType, osVersion, appVersion, length, userId, MetaData.CURRENT_VERSION);
+ return new RequestMetaData(measurementIdentifier, deviceType, osVersion, appVersion, length, userId, RequestMetaData.CURRENT_VERSION);
}
/**
diff --git a/libs/deserializer/src/test/java/de/cyface/deserializer/BinaryFormatDeserializerTest.java b/libs/deserializer/src/test/java/de/cyface/deserializer/BinaryFormatDeserializerTest.java
index 4601381..d980033 100644
--- a/libs/deserializer/src/test/java/de/cyface/deserializer/BinaryFormatDeserializerTest.java
+++ b/libs/deserializer/src/test/java/de/cyface/deserializer/BinaryFormatDeserializerTest.java
@@ -58,7 +58,7 @@
import de.cyface.deserializer.exceptions.InvalidLifecycleEvents;
import de.cyface.model.Event;
import de.cyface.model.MeasurementIdentifier;
-import de.cyface.model.MetaData;
+import de.cyface.model.RequestMetaData;
import de.cyface.model.Modality;
import de.cyface.model.Point3D;
import de.cyface.model.Point3DImpl;
@@ -112,9 +112,9 @@ void test() throws IOException, InvalidLifecycleEvents, UnsupportedFileVersion {
// Arrange
final var identifier = new MeasurementIdentifier("test", 1);
try (final var testData = testData(identifier)) {
- final var metaData = new MetaData(identifier, "Pixel 3", "Android 9.0.0", "1.2.0-beta1", 500.5,
+ final var metaData = new RequestMetaData(identifier, "Pixel 3", "Android 9.0.0", "1.2.0-beta1", 500.5,
TEST_USER_ID,
- MetaData.CURRENT_VERSION);
+ RequestMetaData.CURRENT_VERSION);
final var reader = new BinaryFormatDeserializer(metaData, testData);
// Act
@@ -128,7 +128,7 @@ void test() throws IOException, InvalidLifecycleEvents, UnsupportedFileVersion {
assertThat(result.getMetaData().getAppVersion(), is("1.2.0-beta1"));
assertThat(result.getMetaData().getLength(), is(500.5));
assertThat(result.getMetaData().getUserId(), is(TEST_USER_ID));
- assertThat(result.getMetaData().getVersion(), is(MetaData.CURRENT_VERSION));
+ assertThat(result.getMetaData().getVersion(), is(RequestMetaData.CURRENT_VERSION));
final var resultTracks = result.getTracks();
assertThat(resultTracks, hasSize(3));
@@ -336,8 +336,8 @@ void testSerializeDeserialize() throws IOException, InvalidLifecycleEvents {
final var directions = Point3DDeserializer
.directions(parsedMeasurement.getDirectionsBinary().getDirectionsList());
final var trackBuilder = new TrackBuilder();
- final var metaData = new MetaData(identifier, "Pixel 3", "Android 12.0.0", "3.0.2", 0.0,
- TEST_USER_ID, MetaData.CURRENT_VERSION);
+ final var metaData = new RequestMetaData(identifier, "Pixel 3", "Android 12.0.0", "3.0.2", 0.0,
+ TEST_USER_ID, RequestMetaData.CURRENT_VERSION);
final var tracks = trackBuilder.build(deserializedLocations, deserializedEvents, accelerations, rotations,
directions, identifier);
final var deserializedMeasurement = new de.cyface.model.Measurement(metaData, tracks);
diff --git a/libs/model/src/main/java/de/cyface/model/Measurement.java b/libs/model/src/main/java/de/cyface/model/Measurement.java
index 2caa0b4..e7836a5 100644
--- a/libs/model/src/main/java/de/cyface/model/Measurement.java
+++ b/libs/model/src/main/java/de/cyface/model/Measurement.java
@@ -67,7 +67,7 @@ public class Measurement implements Serializable {
/**
* The context of this {@code Measurement}.
*/
- private MetaData metaData;
+ private RequestMetaData metaData;
/**
* The data collected for this {@code Measurement} in {@code Track}-slices, ordered by timestamp.
*/
@@ -88,7 +88,7 @@ public Measurement() {
* @param metaData The context of this {@code Measurement}.
* @param tracks The data collected for this {@code Measurement} in {@code Track}-slices, ordered by timestamp.
*/
- public Measurement(final MetaData metaData, final List