Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesmac committed Nov 9, 2024
1 parent 9a05792 commit 6c97cac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ class XyoLocationCurrent {
if (coordinates == null) {
return null
} else {
return CurrentLocation(coordinates!!, System.currentTimeMillis())
val currentLocation = CurrentLocation(coordinates!!, System.currentTimeMillis())
val serialized = XyoSerializable.toJson(currentLocation)
Log.i("xyoClient", "serialized currentLocation: ${serialized}")
return currentLocation
}
} catch (e: InterruptedException) {
e.printStackTrace()
Expand All @@ -68,7 +71,7 @@ class XyoLocationCurrent {
location.speed
)
val serialized = XyoSerializable.toJson(coordinates)
Log.i("xyoClient", "serialized: ${serialized}")
Log.i("xyoClient", "serialized Coordinates: ${serialized}")
return coordinates
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ data class Coordinates(
val speed: Float?
)

@JsonClass(generateAdapter = true)
data class CurrentLocation(
val coords: Coordinates,
val timestamp: Long
Expand Down

0 comments on commit 6c97cac

Please sign in to comment.