Swiftgram/Postbox/PostboxAccess.swift
2017-02-11 17:03:28 +03:00

24 lines
507 B
Swift

import Foundation
#if os(macOS)
import SwiftSignalKitMac
#else
import SwiftSignalKit
#endif
public enum PostboxAuthorizationChallenge {
case numericPassword(length: Int32)
case arbitraryPassword()
}
public enum PostboxAccess {
case unlocked(Postbox)
case locked(PostboxAuthorizationChallenge)
}
public func accessPostbox(basePath: String, password: String?) -> Signal<PostboxAccess, NoError> {
return Signal { subscriber in
return ActionDisposable {
}
}
}