NomadDeviceSyncApiV0
internal open class NomadDeviceSyncApiV0(authenticatedNetworkClient: AuthenticatedNetworkClient, nomadServiceUrl: String? = null) : NomadDeviceSyncApi
Constructors
Link copied to clipboard
internal constructor(authenticatedNetworkClient: AuthenticatedNetworkClient, nomadServiceUrl: String? = null)
Types
Link copied to clipboard
internal class StreamCryptoStateBodyContent(fileContentStream: () -> Source, fileSize: Long) : OutgoingContent.WriteChannelContent
Custom OutgoingContent implementation to stream the crypto state backup as multipart/form-data without loading it all into memory. The content is structured as follows: --boundary Content-Disposition: form-data; name="file"; filename="CHANGELOG.zip" Content-Type: application/octet-stream Content-Length:
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun getConversationMetadata(): NetworkResponse<NomadConversationMetadataResponse>
Link copied to clipboard
open suspend override fun postMessageEvents(request: NomadMessageEventsRequest): NetworkResponse<Unit>
Link copied to clipboard
open suspend override fun restoreMessagesBatch(request: NomadBatchRestoreRequest): NetworkResponse<NomadBatchRestoreResponse>
Link copied to clipboard
Link copied to clipboard
open suspend override fun syncAllMessages(limit: Int = 100): NetworkResponse<NomadAllMessagesResponse>
Link copied to clipboard
open suspend override fun uploadCryptoState(clientId: String, backupSource: () -> Source, backupSize: Long): NetworkResponse<Unit>