Skip to content

Commit

Permalink
[LEIP-184] Add filesSize to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed Oct 26, 2023
1 parent 0d8d7b4 commit f8072ed
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import java.nio.charset.Charset
* @property logCount The number of logs captured for this measurement.
* @property imageCount The number of images captured for this measurement.
* @property videoCount The number of videos captured for this measurement.
* @property filesSize The number of bytes of the files collected for this measurement (log, image and video data).
*/
@Suppress("unused") // Part of the API
data class RequestMetaData(
Expand All @@ -58,7 +59,8 @@ data class RequestMetaData(
val formatVersion: Int,
val logCount: Int,
val imageCount: Int,
val videoCount: Int
val videoCount: Int,
val filesSize: Long
) : Serializable {

init {
Expand Down Expand Up @@ -98,6 +100,7 @@ data class RequestMetaData(
require(logCount >= 0) { "Invalid logCount: $logCount" }
require(imageCount >= 0) { "Invalid imageCount: $imageCount" }
require(videoCount >= 0) { "Invalid videoCount: $videoCount" }
require(filesSize >= 0) { "Invalid filesSize: $filesSize" }
}

/**
Expand Down

0 comments on commit f8072ed

Please sign in to comment.