AgoraChatSDK 1.3.1
AgoraChatFileMessageBody.h
1
9#import <Foundation/Foundation.h>
10
11#import "AgoraChatMessageBody.h"
12
17typedef NS_ENUM(NSInteger, AgoraChatDownloadStatus) {
18 AgoraChatDownloadStatusDownloading = 0,
19 AgoraChatDownloadStatusSucceed,
20 AgoraChatDownloadStatusFailed,
21 AgoraChatDownloadStatusPending,
22 AgoraChatDownloadStatusSuccessed=AgoraChatDownloadStatusSucceed,
23};
24
30
35@property (nonatomic, copy) NSString *displayName;
36
41@property (nonatomic, copy) NSString *localPath;
42
47@property (nonatomic, copy) NSString *remotePath;
48
53@property (nonatomic, copy) NSString *secretKey;
54
59@property (nonatomic) long long fileLength;
60
65@property (nonatomic) AgoraChatDownloadStatus downloadStatus;
66
76- (instancetype _Nonnull)initWithLocalPath:(NSString * _Nullable)aLocalPath
77 displayName:(NSString * _Nullable)aDisplayName;
78
88- (instancetype _Nonnull)initWithData:(NSData *_Nullable)aData
89 displayName:(NSString *_Nullable)aDisplayName;
90
91
92@end
Definition: AgoraChatFileMessageBody.h:30
NSString * displayName
Definition: AgoraChatFileMessageBody.h:35
long long fileLength
Definition: AgoraChatFileMessageBody.h:59
NSString * localPath
Definition: AgoraChatFileMessageBody.h:41
NSString * remotePath
Definition: AgoraChatFileMessageBody.h:47
AgoraChatDownloadStatus downloadStatus
Definition: AgoraChatFileMessageBody.h:65
NSString * secretKey
Definition: AgoraChatFileMessageBody.h:53
Definition: AgoraChatMessageBody.h:33