19 lines
358 B
Swift
19 lines
358 B
Swift
import Foundation
|
|
|
|
typealias Credentials = [String: String]
|
|
|
|
protocol XMPPStorage: AnyObject {
|
|
// credentials
|
|
func getCredentialsByUUID(_ uuid: UUID) async -> Credentials?
|
|
|
|
// roster
|
|
func getRosterVersion(jid: JID) async -> String?
|
|
func setRosterVersion(jid: JID, ver: String) async
|
|
|
|
// messages
|
|
|
|
// omemo
|
|
|
|
// whatever else
|
|
}
|