Signal-iOS/SignalServiceKit/MessageBackup/MessageBackupRemoteInfo.swift

26 lines
869 B
Swift

//
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
public struct MessageBackupRemoteInfo: Decodable {
/// The CDN type where the message backup is stored. Media may be stored elsewhere.
let cdn: Int32
/// The base directory of your backup data on the cdn. The message backup can befound in the
/// returned cdn at /backupDir/backupName and stored media can be found at /backupDir/mediaDir/mediaId
let backupDir: String
/// The prefix path component for media objects on a cdn. Stored media for mediaId
/// can be found at /backupDir/mediaDir/mediaId.
let mediaDir: String
/// The name of the most recent message backup on the cdn. The backup is at /backupDir/backupName
let backupName: String
/// The amount of space used to store media
let usedSpace: Int64
}