Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Feature/update json representation (#42)
Browse files Browse the repository at this point in the history
* Refactor asJson() method in DeviceMeasurement class

The asJson() method in the DeviceMeasurement class has been refactored. The "location" field has been renamed to "deviceLocation" to improve clarity and enhance code readability.

* The provided commit message doesn't match the code difference. Based on the provided diffs, the correct commit message could be:

Update version in pom.xml

The version of the fiware-integration-layer artifact in pom.xml has been updated from 10.4.0 to 10.5.0. This update marks a new release of the software.
  • Loading branch information
saschadoemer authored Mar 1, 2024
1 parent 59263af commit 9511ca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.app.5gla</groupId>
<artifactId>fiware-integration-layer</artifactId>
<version>10.4.0</version>
<version>10.5.0</version>

<name>5gLa FIWARE integration layer</name>
<url>https://github.com/vitrum-connect/5gla-fiware-integration-layer</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ public void validate() {
}

public String asJson() {
return "{\"id\":\"" + id + "\",\"type\":\"" + type + "\",\"location\":" + deviceLocation.asJson() + ",\"measurement\":" + measurement.asJson() + "}";
return "{\"id\":\"" + id + "\",\"type\":\"" + type + "\",\"deviceLocation\":" + deviceLocation.asJson() + ",\"measurement\":" + measurement.asJson() + "}";
}
}

0 comments on commit 9511ca4

Please sign in to comment.