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.
22 lines
918 B
Swift
22 lines
918 B
Swift
5 years ago
|
|
||
|
// 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"
|
||
|
}
|