mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 16:19:33 +01:00
Convert all account based calls to WebSocket.
This commit is contained in:
committed by
Greyson Parrelli
parent
6d115a912d
commit
305b380fef
@@ -6,16 +6,23 @@
|
||||
package org.thoughtcrime.securesms.net
|
||||
|
||||
import org.thoughtcrime.securesms.dependencies.AppDependencies
|
||||
import org.whispersystems.signalservice.api.account.AccountApi
|
||||
import org.whispersystems.signalservice.api.archive.ArchiveApi
|
||||
import org.whispersystems.signalservice.api.attachment.AttachmentApi
|
||||
import org.whispersystems.signalservice.api.keys.KeysApi
|
||||
import org.whispersystems.signalservice.api.link.LinkDeviceApi
|
||||
import org.whispersystems.signalservice.api.storage.StorageServiceApi
|
||||
import org.whispersystems.signalservice.api.username.UsernameApi
|
||||
|
||||
/**
|
||||
* A convenient way to access network operations, similar to [org.thoughtcrime.securesms.database.SignalDatabase] and [org.thoughtcrime.securesms.keyvalue.SignalStore].
|
||||
*/
|
||||
object SignalNetwork {
|
||||
@JvmStatic
|
||||
@get:JvmName("account")
|
||||
val account: AccountApi
|
||||
get() = AppDependencies.accountApi
|
||||
|
||||
val archive: ArchiveApi
|
||||
get() = AppDependencies.archiveApi
|
||||
|
||||
@@ -30,4 +37,9 @@ object SignalNetwork {
|
||||
|
||||
val storageService: StorageServiceApi
|
||||
get() = AppDependencies.storageServiceApi
|
||||
|
||||
@JvmStatic
|
||||
@get:JvmName("username")
|
||||
val username: UsernameApi
|
||||
get() = AppDependencies.usernameApi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user