mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
595 B
Swift
16 lines
595 B
Swift
import SessionProtocolKit
|
|
|
|
public protocol SessionMessagingKitStorageProtocol {
|
|
|
|
func with(_ work: (Any) -> Void)
|
|
func withAsync(_ work: (Any) -> Void, completion: () -> Void)
|
|
|
|
func getUserPublicKey() -> String?
|
|
func getOrGenerateRegistrationID(using transaction: Any) -> UInt32
|
|
func isClosedGroup(_ publicKey: String) -> Bool
|
|
func getClosedGroupPrivateKey(for publicKey: String) -> String?
|
|
func persist(_ job: Job, using transaction: Any)
|
|
func markJobAsSucceeded(_ job: Job, using transaction: Any)
|
|
func markJobAsFailed(_ job: Job, using transaction: Any)
|
|
}
|