Skip to content

Commit

Permalink
feat(lib): add missing toString() in HeartRateRecord and LocationRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
matey97 committed Feb 6, 2024
1 parent 6ae7820 commit 9dc9f38
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
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 9dc9f38

Please sign in to comment.