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