File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
//
6
6
7
7
import Foundation
8
- enum ApiVideoClientError : Error {
8
+ enum ApiVideoUploaderError : Error {
9
9
case invalidApplicationName
10
10
}
11
11
@@ -14,7 +14,7 @@ public class ApiVideoUploader {
14
14
15
15
public static var apiKey : String ? = nil
16
16
public static var basePath = " https://ws.api.video "
17
- internal static var customHeaders : [ String : String ] = [ " User-Agent " : ApiVideoClient . DEFAULT_USER_AGENT]
17
+ internal static var customHeaders : [ String : String ] = [ " User-Agent " : ApiVideoUploader . DEFAULT_USER_AGENT]
18
18
private static var chunkSize : Int = 50 * 1024 * 1024
19
19
internal static var requestBuilderFactory : RequestBuilderFactory = AlamofireRequestBuilderFactory ( )
20
20
internal static var credential = ApiVideoCredential ( )
@@ -40,9 +40,9 @@ public class ApiVideoUploader {
40
40
let stringRange = NSRange ( location: 0 , length: applicationName. utf16. count)
41
41
let matches = regex. matches ( in: applicationName, range: stringRange)
42
42
if ( matches. isEmpty) {
43
- throw ApiVideoClientError . invalidApplicationName
43
+ throw ApiVideoUploaderError . invalidApplicationName
44
44
}
45
- ApiVideoClient . customHeaders [ " User-Agent " ] = ApiVideoClient . DEFAULT_USER_AGENT + " " + applicationName
45
+ ApiVideoUploader . customHeaders [ " User-Agent " ] = ApiVideoUploader . DEFAULT_USER_AGENT + " " + applicationName
46
46
}
47
47
}
48
48
You can’t perform that action at this time.
0 commit comments