Move more networking stuff into SignalNetwork.

This commit is contained in:
Greyson Parrelli
2024-09-07 14:44:25 -04:00
committed by Cody Henthorne
parent e247d311d8
commit 7835b1d1fc
10 changed files with 61 additions and 15 deletions

View File

@@ -7,6 +7,8 @@ package org.thoughtcrime.securesms.net
import org.thoughtcrime.securesms.dependencies.AppDependencies
import org.whispersystems.signalservice.api.archive.ArchiveApi
import org.whispersystems.signalservice.api.attachment.AttachmentApi
import org.whispersystems.signalservice.api.keys.KeysApi
/**
* A convenient way to access network operations, similar to [org.thoughtcrime.securesms.database.SignalDatabase] and [org.thoughtcrime.securesms.keyvalue.SignalStore].
@@ -14,4 +16,10 @@ import org.whispersystems.signalservice.api.archive.ArchiveApi
object SignalNetwork {
val archive: ArchiveApi
get() = AppDependencies.archiveApi
val attachments: AttachmentApi
get() = AppDependencies.attachmentApi
val keys: KeysApi
get() = AppDependencies.keysApi
}