blob: 3460b92028dcd7cb3f0f9e6d6827b90c33708598 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#import <Foundation/Foundation.h>
@implementation TestClass
- (NSDictionary *)constructUploadHeaders {
NSDictionary *headers;
headers = @{
@"Content-Length":[@(contentLength)stringValue],
@"Content-Length2": [contentLength stringValue],
@"Content-Disposition": [NSString stringWithFormat:@"name=\"%@\"; filename=\"%@\"", @"asset_data", identifier],
@"Content-Type": @"application/octet-stream",
@"ETag": uploadEtag
};
return headers;
}
- (BOOL)isStrimmed {
if ([(TestClassVideoEditorView *) (self.parentComponentsView.superview)isTrimmed]) {
return YES;
}
if ([((TestClassVideoEditorView *) self.parentComponentsView.superview)isTrimmed]) {
return YES;
}
return NO;
}
- (void)session {
TestCaseSessionInstance *session = ((TestClassVideoEditorView *) self.parentComponentsView.superview).session;
[(TestClassVideoEditorView *) ( self.parentComponentsView.superview) closeEditor];
[menubutton.badge setBadgeText:[@(count + 1) stringValue]];
}
@end
|