-
Notifications
You must be signed in to change notification settings - Fork 6
/
MVUploadAuthorization.h
41 lines (34 loc) · 1.46 KB
/
MVUploadAuthorization.h
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
38
39
40
41
#import <Foundation/Foundation.h>
#define kMVUploadAuthorizationServiceS3 @"s3"
#define kMVUploadAuthorizationServiceCloudApp @"cloudapp"
@interface MVUploadAuthorization : NSObject
@property (strong, readonly) NSString *service;
// S3
@property (strong, readonly) NSString *bucket;
@property (strong, readonly) NSString *uploadURL;
@property (strong, readonly) NSString *accessKeyId;
@property (strong, readonly) NSString *startsWith;
@property (strong, readonly) NSString *acl;
@property (strong, readonly) NSString *successActionRedirect;
@property (readonly) long long maximumSizeInBytes;
@property (strong, readonly) NSString *policy;
@property (strong, readonly) NSString *signature;
@property (strong, readonly) NSDate *expirationDate;
@property (readonly, getter = isExpired) BOOL expired;
// CloudApp
@property (strong, readonly) NSString *email;
@property (strong, readonly) NSString *password;
- (id)initWithService:(NSString*)service
bucket:(NSString*)bucket
uploadURL:(NSString*)uploadURL
accessKeyId:(NSString*)accessKeyId
startsWith:(NSString*)startsWith
acl:(NSString*)acl
successActionRedirect:(NSString*)successActionRedirect
maximumSizeInBytes:(long long)maximumSizeInBytes
policy:(NSString*)policy
signature:(NSString*)signature
expirationDate:(NSDate*)expirationDate;
- (id)initWithCloudAppEmail:(NSString*)email
password:(NSString*)password;
@end