Persistence
protocol Persistence : SDKObject
Instance Methods
- getMessage(accountId:chatId:serverId:localId:) Find a message by Chat ID and known IDs
- getMessagesAfter(accountId:chatId:afterId:) Load messages newer than a reference message
- getMessagesAround(accountId:around:) Load messages surrounding a reference message
- getMessagesBefore(accountId:chatId:before:) Load messages older than a reference message
- hasMedia(hashAlgorithm:hash:) Check whether a media blob is already stored
- listAccounts() List all accounts present in storage
- removeAccount(accountId:completely:) Remove stored data for an account
- removeMedia(hashAlgorithm:hash:) Delete previously stored media
- storeChats(accountId:chats:) Persist the current metadata for a set of Chats
- storeLogin(accountId:clientId:displayName:token:) Store login-related state for an account
- storeMedia(mime:bytes:) Store media bytes and any metadata needed to retrieve them later
- storeMessages(accountId:message:) Persist one or more messages
- syncPoint(accountId:chatId:) Get the last message in an account or chat that is is safe to sync forward from
- updateMessage(accountId:message:) Replace the stored record for a message
- updateMessageStatus(accountId:localId:status:statusText:) Update delivery state for a locally-created message