forked from michaelvillar/chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMVFileUploadManager.h
More file actions
26 lines (18 loc) · 776 Bytes
/
Copy pathMVFileUploadManager.h
File metadata and controls
26 lines (18 loc) · 776 Bytes
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
#import <Foundation/Foundation.h>
@class MVUploadAuthorization,
MVAssetsManager,
MVAsset,
MVFileUploadManager;
@protocol MVFileUploadManagerDelegate
- (void)fileUploadManager:(MVFileUploadManager*)fileUploadManager
uploadAuthorizationDidExpired:(MVUploadAuthorization*)uploadAuthorization;
@end
@interface MVFileUploadManager : NSObject
@property (strong, readwrite) MVUploadAuthorization *uploadAuthorization;
@property (strong, readwrite) MVAssetsManager *assetsManager;
@property (weak, readwrite) NSObject<MVFileUploadManagerDelegate> *delegate;
- (id)initWithAssetsManager:(MVAssetsManager*)assetsManager;
- (MVAsset*)uploadFileWithKey:(NSString*)key
data:(NSData*)data;
- (MVAsset*)uploadAvatar:(NSData*)data;
@end