session-ios/SessionMessagingKit/Storage.swift

16 lines
595 B
Swift
Raw Normal View History

2020-11-06 01:41:01 +01:00
import SessionProtocolKit
public protocol SessionMessagingKitStorageProtocol {
func with(_ work: (Any) -> Void)
2020-11-08 03:54:40 +01:00
func withAsync(_ work: (Any) -> Void, completion: () -> Void)
2020-11-06 01:41:01 +01:00
func getUserPublicKey() -> String?
2020-11-06 01:41:01 +01:00
func getOrGenerateRegistrationID(using transaction: Any) -> UInt32
func isClosedGroup(_ publicKey: String) -> Bool
func getClosedGroupPrivateKey(for publicKey: String) -> String?
2020-11-08 03:12:38 +01:00
func persist(_ job: Job, using transaction: Any)
2020-11-08 03:54:40 +01:00
func markJobAsSucceeded(_ job: Job, using transaction: Any)
func markJobAsFailed(_ job: Job, using transaction: Any)
2020-11-06 01:41:01 +01:00
}