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

29 lines
696 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 failureCount: UInt = 0
// MARK: Settings
5 years ago
public static let maxFailureCount: UInt = 20
// 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)
}
}