mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
22 lines
918 B
Swift
22 lines
918 B
Swift
|
|
||
|
// TODO: Create an extension for each category, e.g. Storage+OpenGroups, Storage+SnodePool, etc.
|
||
|
|
||
|
@objc public extension Storage {
|
||
|
|
||
|
// TODO: Add remaining collections
|
||
|
|
||
|
@objc func getDeviceLinkCollection(for masterPublicKey: String) -> String {
|
||
|
return "LokiDeviceLinkCollection-\(masterPublicKey)"
|
||
|
}
|
||
|
|
||
|
@objc public static func getSwarmCollection(for publicKey: String) -> String {
|
||
|
return "LokiSwarmCollection-\(publicKey)"
|
||
|
}
|
||
|
|
||
|
@objc public static let openGroupCollection = "LokiPublicChatCollection"
|
||
|
@objc public static let openGroupProfilePictureURLCollection = "LokiPublicChatAvatarURLCollection"
|
||
|
@objc public static let openGroupUserCountCollection = "LokiPublicChatUserCountCollection"
|
||
|
@objc public static let sessionRequestTimestampCollection = "LokiSessionRequestTimestampCollection"
|
||
|
@objc public static let snodePoolCollection = "LokiSnodePoolCollection"
|
||
|
}
|