feat: add title and artist to collected json
This commit is contained in:
@@ -213,6 +213,8 @@ class LockstepViewModel(
|
||||
playlistDisplayName = playlistDisplayName,
|
||||
trackQueueIndex0Based = event.queueIndex,
|
||||
metaContentUri = meta,
|
||||
title = event.title,
|
||||
artist = event.artist,
|
||||
snapshot = snapshot,
|
||||
)
|
||||
}
|
||||
@@ -224,6 +226,8 @@ class LockstepViewModel(
|
||||
playlistDisplayName: String,
|
||||
runSessionFolder: String,
|
||||
trackId: String,
|
||||
title: String,
|
||||
artist: String,
|
||||
queueIndex: Int,
|
||||
snapshot: RunTrackDataSnapshot,
|
||||
) {
|
||||
@@ -239,6 +243,8 @@ class LockstepViewModel(
|
||||
playlistDisplayName = playlistDisplayName,
|
||||
trackQueueIndex0Based = queueIndex,
|
||||
metaContentUri = meta,
|
||||
title = title,
|
||||
artist = artist,
|
||||
snapshot = snapshot,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -273,6 +273,8 @@ fun NowPlayingRoute(
|
||||
playlistDisplayName = playlistDisplayName,
|
||||
runSessionFolder = runSessionFolder,
|
||||
trackId = trackId,
|
||||
title = ui.title,
|
||||
artist = ui.artist,
|
||||
queueIndex = currentQueueIndex,
|
||||
snapshot = snapshot,
|
||||
)
|
||||
|
||||
@@ -31,6 +31,8 @@ object RunDataStorage {
|
||||
playlistDisplayName: String,
|
||||
trackQueueIndex0Based: Int,
|
||||
metaContentUri: String,
|
||||
title: String,
|
||||
artist: String,
|
||||
snapshot: RunTrackDataSnapshot,
|
||||
): Uri? {
|
||||
if (snapshot.isEmpty()) return null
|
||||
@@ -51,6 +53,8 @@ object RunDataStorage {
|
||||
put("gyro", samplesToJsonArray(snapshot.gyroscope))
|
||||
put("gps", gpsToJsonArray(snapshot.gps))
|
||||
put("meta", metaContentUri)
|
||||
put("title", title)
|
||||
put("artist", artist)
|
||||
put("versionCode", BuildConfig.VERSION_CODE)
|
||||
}.toString()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user