/*
 * Copyright 2024 Signal Messenger, LLC
 * SPDX-License-Identifier: AGPL-3.0-only
 */

package org.whispersystems.signalservice.api.archive

import com.fasterxml.jackson.annotation.JsonProperty

/**
 * Response body for getting the media items stored in the user's archive.
 */
class ArchiveGetMediaItemsResponse(
  @JsonProperty val storedMediaObjects: List<StoredMediaObject>,
  @JsonProperty val backupDir: String?,
  @JsonProperty val mediaDir: String?,
  @JsonProperty val cursor: String?
) {
  data class StoredMediaObject(
    @JsonProperty val cdn: Int,
    @JsonProperty val mediaId: String,
    @JsonProperty val objectLength: Long
  )
}
