|
@@ -29,10 +29,9 @@ import NCCommunication
|
|
|
@objc optional func downloadProgress(_ progress: Double, fileName: String, ServerUrl: String, session: URLSession, task: URLSessionTask)
|
|
|
@objc optional func uploadProgress(_ progress: Double, fileName: String, ServerUrl: String, session: URLSession, task: URLSessionTask)
|
|
|
@objc optional func downloadComplete(fileName: String, serverUrl: String, etag: String?, date: NSDate?, dateLastModified: NSDate?, length: Double, description: String?, error: Error?, statusCode: Int)
|
|
|
- @objc optional func uploadComplete(fileName: String, serverUrl: String, ocId: String?, etag: String?, date: NSDate? ,description: String?, error: Error?, statusCode: Int)
|
|
|
+ @objc optional func uploadComplete(fileName: String, serverUrl: String, ocId: String?, etag: String?, date: NSDate?, contentType: String?, description: String?, error: Error?, statusCode: Int)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@objc class NCNetworking: NSObject, NCCommunicationCommonDelegate {
|
|
|
@objc public static let sharedInstance: NCNetworking = {
|
|
|
let instance = NCNetworking()
|
|
@@ -69,8 +68,8 @@ import NCCommunication
|
|
|
delegate?.uploadProgress?(progress, fileName: fileName, ServerUrl: ServerUrl, session: session, task: task)
|
|
|
}
|
|
|
|
|
|
- func uploadComplete(fileName: String, serverUrl: String, ocId: String?, etag: String?, date: NSDate?, description: String?, error: Error?, statusCode: Int) {
|
|
|
- delegate?.uploadComplete?(fileName: fileName, serverUrl: serverUrl, ocId: ocId, etag: etag, date: date, description: description, error: error, statusCode: statusCode)
|
|
|
+ func uploadComplete(fileName: String, serverUrl: String, ocId: String?, etag: String?, date: NSDate?, contentType: String? ,description: String?, error: Error?, statusCode: Int) {
|
|
|
+ delegate?.uploadComplete?(fileName: fileName, serverUrl: serverUrl, ocId: ocId, etag: etag, date: date, contentType: contentType, description: description, error: error, statusCode: statusCode)
|
|
|
}
|
|
|
|
|
|
func downloadComplete(fileName: String, serverUrl: String, etag: String?, date: NSDate?, dateLastModified: NSDate?, length: Double, description: String?, error: Error?, statusCode: Int) {
|