CommonMPBackupExporter

abstract class CommonMPBackupExporter(selfUserId: BackupQualifiedId)

Entity able to serialize BackupData entities, like BackupMessage, BackupConversation, BackupUser into a cross-platform BackupData format.

Inheritors

Constructors

Link copied to clipboard
constructor(selfUserId: BackupQualifiedId)

Properties

Link copied to clipboard
internal abstract val storage: BackupPageStorage

Functions

Link copied to clipboard
fun add(conversation: BackupConversation)
fun add(message: BackupMessage)
fun add(user: BackupUser)
Link copied to clipboard
internal suspend fun finalize(password: String, output: <Error class: unknown class>): ExportResult

Finalize the export and write the data to the given output. This method should be called after all the data was added.

Link copied to clipboard
internal abstract fun zipEntries(data: List<BackupPage>): <Error class: unknown class><<Error class: unknown class>>