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.
session-ios/SessionMessagingKit/Jobs/AttachmentUploadJob.swift

34 lines
869 B
Swift

import SessionUtilitiesKit
// TODO: Implementation
public final class AttachmentUploadJob : NSObject, Job, NSCoding { // NSObject/NSCoding conformance is needed for YapDatabase compatibility
5 years ago
public var delegate: JobDelegate?
public var id: String?
5 years ago
public var failureCount: UInt = 0
// MARK: Settings
public class var collection: String { return "AttachmentUploadJobCollection" }
5 years ago
public static let maxFailureCount: UInt = 20
4 years ago
// MARK: Initialization
public override init() { }
// MARK: Coding
public init?(coder: NSCoder) { }
public func encode(with coder: NSCoder) { }
// MARK: Running
public func execute() { }
5 years ago
private func handleSuccess() {
delegate?.handleJobSucceeded(self)
}
5 years ago
private func handleFailure(error: Error) {
delegate?.handleJobFailed(self, with: error)
}
}