Skip to content

Commit

Permalink
Merge pull request #9 from GeoTecINIT/missing-toString
Browse files Browse the repository at this point in the history
Missing toString()
  • Loading branch information
matey97 authored Feb 6, 2024
2 parents 6ae7820 + 9affc78 commit e8f8a2e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wearossensors/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ android {
namespace 'es.uji.geotec.wearossensors'
}

version = '1.2.0'
version = '1.2.1'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")

publishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@ public HeartRateRecord(long timestamp, int value) {
public int getValue() {
return value;
}

@Override
public String toString() {
return "HeartRateRecord{" +
"timestamp=" + getTimestamp() +
", value=" + value +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,18 @@ public float getSpeed() {
public float getDirection() {
return direction;
}

@Override
public String toString() {
return "LocationRecord{" +
"timestamp=" + getTimestamp() +
", latitude=" + latitude +
", longitude=" + longitude +
", altitude=" + altitude +
", verticalAccuracy=" + verticalAccuracy +
", horizontalAccuracy=" + horizontalAccuracy +
", speed=" + speed +
", direction=" + direction +
'}';
}
}

0 comments on commit e8f8a2e

Please sign in to comment.