mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 16:19:33 +01:00
Move more networking stuff into SignalNetwork.
This commit is contained in:
committed by
Cody Henthorne
parent
e247d311d8
commit
7835b1d1fc
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user