session-ios/SessionMessagingKit/Utilities/AttachmentStream.swift

13 lines
353 B
Swift
Raw Normal View History

2020-11-12 03:54:59 +01:00
@objc(SNAttachmentStream)
public protocol AttachmentStream {
@objc var encryptionKey: Data { get set }
@objc var digest: Data { get set }
@objc var serverId: UInt64 { get set }
@objc var isUploaded: Bool { get set }
@objc var downloadURL: String { get set }
2020-11-12 03:54:59 +01:00
@objc func readDataFromFile() throws -> Data
@objc func save()
}