another.im-ios/AnotherIM/xmpp/XMPPStorage.swift
2024-12-17 09:34:44 +01:00

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
}